Android Code Snippet Simplest custom dialog box

HAH

Active Member
Licensed User
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:

Erel

Administrator
Staff member
Licensed User
Theme.Dialog is actually worst. It is Android 2 theme.
 
Top