D Dario126 Member Licensed User Longtime User Dec 14, 2013 #1 I want to make app which has no full screen form, but some dialog type form (custom made by me). This is modified in main module: Code: Copy #Region Activity Attributes #FullScreen: False #IncludeTitle: false #End Region .. but app is still in whole screen area except title and navigation buttons. How do I make "dialog type" form for my app .. for example round rect 200x50 pix or some custom semi transparent image?
I want to make app which has no full screen form, but some dialog type form (custom made by me). This is modified in main module: Code: Copy #Region Activity Attributes #FullScreen: False #IncludeTitle: false #End Region .. but app is still in whole screen area except title and navigation buttons. How do I make "dialog type" form for my app .. for example round rect 200x50 pix or some custom semi transparent image?
NJDude Expert Licensed User Longtime User Dec 14, 2013 #2 You will need something like StandOut Upvote 0
D Dario126 Member Licensed User Longtime User Dec 16, 2013 #3 Well, I can not believe that there is no some simpler way to have some dialog window on screen. I do not need widget like form which is always active. I only need modal dialog (modal form) which is not full screen area, but only 200x50 pix. Two or three buttons on them for user to choose. Purpose is when app running in background needs to ask user some yes/no detail, not to occupy whole screen .. Maybe custom dialog is right way? Upvote 0
Well, I can not believe that there is no some simpler way to have some dialog window on screen. I do not need widget like form which is always active. I only need modal dialog (modal form) which is not full screen area, but only 200x50 pix. Two or three buttons on them for user to choose. Purpose is when app running in background needs to ask user some yes/no detail, not to occupy whole screen .. Maybe custom dialog is right way?
Erel B4X founder Staff member Licensed User Longtime User Dec 16, 2013 #4 You can also create a transparent activity: http://www.b4x.com/android/forum/threads/hiding-an-activity.14824/ Upvote 0
You can also create a transparent activity: http://www.b4x.com/android/forum/threads/hiding-an-activity.14824/
warwound Expert Licensed User Longtime User Dec 16, 2013 #6 Isn't it possible to edit the manifest and set the theme of any Activity to be one of the android Dialog themes? Code: Copy SetActivityAttribute(Main, android:theme, "@android:style/Theme.Dialog") Martin. Attachments DialogActivity.zip DialogActivity.zip 6.8 KB · Views: 715 Upvote 0
Isn't it possible to edit the manifest and set the theme of any Activity to be one of the android Dialog themes? Code: Copy SetActivityAttribute(Main, android:theme, "@android:style/Theme.Dialog") Martin.
thedesolatesoul Expert Licensed User Longtime User Dec 16, 2013 #7 warwound said: Isn't it possible to edit the manifest and set the theme of any Activity to be one of the android Dialog themes? Code: Copy SetActivityAttribute(Main, android:theme, "@android:style/Theme.Dialog") Martin. Click to expand... Impressive. Never thought of doing this. Do you know if this works on all versions of Android? Upvote 0
warwound said: Isn't it possible to edit the manifest and set the theme of any Activity to be one of the android Dialog themes? Code: Copy SetActivityAttribute(Main, android:theme, "@android:style/Theme.Dialog") Martin. Click to expand... Impressive. Never thought of doing this. Do you know if this works on all versions of Android?
NJDude Expert Licensed User Longtime User Dec 16, 2013 #8 I'm not sure what the OP is looking for, but, I would say the transparent activity would be a better solution, since the "@android:style/Theme.Dialog" will disable the Holo theme. Upvote 0
I'm not sure what the OP is looking for, but, I would say the transparent activity would be a better solution, since the "@android:style/Theme.Dialog" will disable the Holo theme.
warwound Expert Licensed User Longtime User Dec 16, 2013 #9 thedesolatesoul said: Impressive. Never thought of doing this. Do you know if this works on all versions of Android? Click to expand... Other than what NJDude has posted i'd assume it'll work on all android versions - but with android of course you can never be 100% sure. Martin. Upvote 0
thedesolatesoul said: Impressive. Never thought of doing this. Do you know if this works on all versions of Android? Click to expand... Other than what NJDude has posted i'd assume it'll work on all android versions - but with android of course you can never be 100% sure. Martin.
khosrwb Active Member Licensed User Longtime User Jan 8, 2015 #10 warwound said: Isn't it possible to edit the manifest and set the theme of any Activity to be one of the android Dialog themes? Code: Copy SetActivityAttribute(Main, android:theme, "@android:style/Theme.Dialog") Martin. Click to expand... hi I don't know why don't show my layout (( main2 )) in my app !!! Attachments 1.zip 1.zip 10 KB · Views: 613 Upvote 0
warwound said: Isn't it possible to edit the manifest and set the theme of any Activity to be one of the android Dialog themes? Code: Copy SetActivityAttribute(Main, android:theme, "@android:style/Theme.Dialog") Martin. Click to expand... hi I don't know why don't show my layout (( main2 )) in my app !!!
S Stern0m1 Member Licensed User Feb 21, 2017 #11 If your still interested, I found that if you set #IncludeTitle: True then it works. Upvote 0