Logout button from popup
This commit is contained in:
parent
2a202fd18f
commit
45ef99ccba
@ -51,6 +51,16 @@ public class CheckInActivity extends AppCompatActivity {
|
|||||||
LayoutInflater inflater = LayoutInflater.from(getApplicationContext());
|
LayoutInflater inflater = LayoutInflater.from(getApplicationContext());
|
||||||
view = inflater.inflate(R.layout.layout, null);
|
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_confirm = view.findViewById(R.id.btn_confirm);
|
||||||
Button btn_cancel = view.findViewById(R.id.btn_cancel);
|
Button btn_cancel = view.findViewById(R.id.btn_cancel);
|
||||||
TextView txt_title = view.findViewById(R.id.txt_title);
|
TextView txt_title = view.findViewById(R.id.txt_title);
|
||||||
|
@ -71,6 +71,7 @@
|
|||||||
android:background="@drawable/back" />
|
android:background="@drawable/back" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
android:id="@+id/popup_log_out"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="Log out"
|
android:text="Log out"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user