Android Question dialog theme

Stern0m1

Member
Licensed User
When I set the activity theme to dialog the views from the layout file dont show.
If I add them in code it works.

Is that the way B4A was designed?

Thanks
 

Stern0m1

Member
Licensed User
I dont think the activity size is zero as I get a blank screen.

Any other ideas?

I am setting the the theme to dialog in the manifest editor with:
B4X:
SetActivityAttribute(configuration,android:theme, "@android:style/Theme.Dialog")

This is not the main activity.

Could someone else try this and report back if the same thing happens?

Thanks
 
Upvote 0

Stern0m1

Member
Licensed User
Ok. Will try that.
The dialog theme works fine on my Android 6.0. I have not done extensive testing. Are you sure that there will be issues on Androids greater than 2.0?
I cant find any reference on Androids website that this theme won't work with newer versions. Can you provide a reference?

Thanks
 
Upvote 0

Stern0m1

Member
Licensed User
Can you educate me a bit about themes in general? The code for a theme lies in the android it self? Its not fully contained in the App? Is there some part of the os that it needs?

Trying to understand why it should make a difference which version Android.

Thanks
 
Upvote 0
Top