Browse Source

Logout button from popup

master
Apalak Dutta 1 year ago
parent
commit
45ef99ccba
2 changed files with 11 additions and 0 deletions
  1. +10
    -0
      examples/example_bestshot/example/app/src/main/java/ru/visionlab/femdemo/CheckInActivity.java
  2. +1
    -0
      examples/example_bestshot/example/app/src/main/res/layout/layout.xml

+ 10
- 0
examples/example_bestshot/example/app/src/main/java/ru/visionlab/femdemo/CheckInActivity.java View File

@ -51,6 +51,16 @@ public class CheckInActivity extends AppCompatActivity {
LayoutInflater inflater = LayoutInflater.from(getApplicationContext());
view = inflater.inflate(R.layout.layout, null);
TextView popup_log_out = view.findViewById(R.id.popup_log_out);
popup_log_out.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(CheckInActivity.this, LoginActivity.class);
startActivity(intent);
}
});
/*Button btn_confirm = view.findViewById(R.id.btn_confirm);
Button btn_cancel = view.findViewById(R.id.btn_cancel);
TextView txt_title = view.findViewById(R.id.txt_title);


+ 1
- 0
examples/example_bestshot/example/app/src/main/res/layout/layout.xml View File

@ -71,6 +71,7 @@
android:background="@drawable/back" />
<TextView
android:id="@+id/popup_log_out"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Log out"


Loading…
Cancel
Save