Custom Dialog Tutorial (Sketchware App)

Ragnaros
Ragnaros
382 بار بازدید - 6 سال پیش - [CODE] AlertDialog.Builder alert = new
[CODE] AlertDialog.Builder alert = new AlertDialog.Builder(MainActivity.this); View dialog1 = getLayoutInflater().inflate(R.layout.dialog1,null); alert.setView(dialog1); final AlertDialog dialog = alert.create (); dialog.show(); final Button button = (Button) dialog1.findViewById(R.id.button1); button.setOnClickListener(new View.OnClickListener(){ @Override public void onClick( View dialog1){ dialog.dismiss(); } }); [CODE END]
6 سال پیش در تاریخ 1397/10/03 منتشر شده است.
382 بـار بازدید شده
... بیشتر