From 45ef99ccbac0a491d6f088ea5ec58c6fbd39c1d5 Mon Sep 17 00:00:00 2001 From: Apalak Dutta Date: Thu, 18 May 2023 19:45:12 +0530 Subject: [PATCH] Logout button from popup --- .../java/ru/visionlab/femdemo/CheckInActivity.java | 10 ++++++++++ .../example/app/src/main/res/layout/layout.xml | 1 + 2 files changed, 11 insertions(+) diff --git a/examples/example_bestshot/example/app/src/main/java/ru/visionlab/femdemo/CheckInActivity.java b/examples/example_bestshot/example/app/src/main/java/ru/visionlab/femdemo/CheckInActivity.java index 9539397..83286ec 100644 --- a/examples/example_bestshot/example/app/src/main/java/ru/visionlab/femdemo/CheckInActivity.java +++ b/examples/example_bestshot/example/app/src/main/java/ru/visionlab/femdemo/CheckInActivity.java @@ -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); diff --git a/examples/example_bestshot/example/app/src/main/res/layout/layout.xml b/examples/example_bestshot/example/app/src/main/res/layout/layout.xml index 53b7e99..55748b7 100644 --- a/examples/example_bestshot/example/app/src/main/res/layout/layout.xml +++ b/examples/example_bestshot/example/app/src/main/res/layout/layout.xml @@ -71,6 +71,7 @@ android:background="@drawable/back" />