Android Code Snippet Simplest custom dialog box

The simplest way to make a custom dialog with your any idea design is to design a new activity as you want and convert it to dialog by adding the following line to manifest file:
B4X:
SetActivityAttribute(ACTIVITYNAME,android:theme,@android:style/Theme.Dialog)
Make sure to replace the ACTIVITYNAME to yours.
Then call this dialog as:
B4X:
startactivity(ACTIVITYNAME )
 
Last edited:
Top