CUSTOM DIALOG ;

agosto 16, 2018 doido 2.0 0 Comments



final AlertDialog dialog = new AlertDialog.Builder(GameActivity.this).create();
View inflate = getLayoutInflater().inflate(R.layout.dialogg01, null);
dialog.setView(inflate);

Button bt1 = (Button) inflate.findViewById(R.id.button1);

bt1.setOnClickListener(new OnClickListener() { public void onClick(View view) { dialog.dismiss(); } });

0 Comments: