Dialog XML File:
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical"
tools:ignore="UselessParent">
Code to show Dialog XML in your Activity:
final Dialog dd = new Dialog(ACTIVITY.this); dd.setTitle("TITLE"); dd.setContentView(R.layout.XMLSHEETABOVE); // OTHER CODE HERE dd.show();
If you want to close the Dialog use:
dd.dismiss();
I do not guarantee the reliability of the information given here, the code described on this page is executed at your own risk and in the event of damage or other unforeseeable consequences I am in no way responsible or liable.
Comments
System - 2022-08-17 03:19:16
Thanks for visiting my page and have a nice day!