Ticker

6/recent/ticker-posts

Forgot Sheet Dialog Source Code

//1st Code

final com.google.android.material.bottomsheet.BottomSheetDialog bottomSheetDialog = new com.google.android.material.bottomsheet.BottomSheetDialog(LoginActivity.this);

View bottomSheetView; bottomSheetView = getLayoutInflater().inflate(R.layout.forgot_p_sheet,null );
bottomSheetDialog.setContentView(bottomSheetView);

bottomSheetDialog.getWindow().findViewById(R.id.design_bottom_sheet).setBackgroundResource(android.R.color.transparent);

bottomSheetDialog.show();
bottomSheetDialog.setCancelable(true);
bottomSheetDialog.setCanceledOnTouchOutside(false);

//2nd Code

final LinearLayout bg1 = bottomSheetView.findViewById (R.id.bg1);
final LinearLayout bg = bottomSheetView.findViewById (R.id.bg);
final TextView t1 = bottomSheetView.findViewById (R.id.t1);
final com.google.android.material.textfield.TextInputLayout ti1 = bottomSheetView.findViewById (R.id.ti1);
final Button b1 = bottomSheetView.findViewById (R.id.b1);
final EditText e1 = bottomSheetView.findViewById (R.id.e1);

//3rd Code

b1.setOnClickListener(new OnClickListener() {
public void onClick(View view) {

//4th Code

e1.getText().toString()

//5th Code

bottomSheetDialog.dismiss();

//6th Code

//bottomSheetDialog.dismiss();
} });

Post a Comment

2 Comments