Feb 14, 2019 Replies: 5 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: Code: Copy SetActivityAttribute(ACTIVITYNAME,android:theme,@android:style/Theme.Dialog) Make sure to replace the ACTIVITYNAME to yours. Then call this dialog as: Code: Copy startactivity(ACTIVITYNAME ) Last edited: Feb 14, 2019 Click to expand...
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: Code: Copy SetActivityAttribute(ACTIVITYNAME,android:theme,@android:style/Theme.Dialog) Make sure to replace the ACTIVITYNAME to yours. Then call this dialog as: Code: Copy startactivity(ACTIVITYNAME )
Erel B4X founder Staff member Licensed User Longtime User Feb 14, 2019 #2 There are much simpler ways. Creating a new activity for the dialog is a bad idea. It will cause all kinds of issues. Using holo theme is also a bad idea. Use B4XDialog from the XUI Views library: [B4X] XUI Views - Cross platform views and dialogs
There are much simpler ways. Creating a new activity for the dialog is a bad idea. It will cause all kinds of issues. Using holo theme is also a bad idea. Use B4XDialog from the XUI Views library: [B4X] XUI Views - Cross platform views and dialogs
Erel B4X founder Staff member Licensed User Longtime User Feb 14, 2019 #4 Theme.Dialog is actually worst. It is Android 2 theme.
H Hamied Abou Hulaikah Well-Known Member Licensed User Longtime User Feb 14, 2019 #5 Erel said: Theme.Dialog is actually worst. It is Android 2 theme. Click to expand... so what is the best! AppCompat ? or what?
Erel said: Theme.Dialog is actually worst. It is Android 2 theme. Click to expand... so what is the best! AppCompat ? or what?
Erel B4X founder Staff member Licensed User Longtime User Feb 17, 2019 #6 Don't use an activity as a dialog.