Search This Blog

Monday, July 10, 2017

Show 1 xml lên màn hình

final Dialog  alertDialog = new Dialog(this) ;

alertDialog.setContentView(R.layout.view_notification);
SwitchCompat switchNotification = (SwitchCompat)alertDialog.findViewById(R.id.switchNotification);




alertDialog.show();

No comments:

Post a Comment