Android Question How to change the theme of one of the Layouts?

watesoft

Active Member
Licensed User
Longtime User
I have three Activities. how to change the theme of only one of them?
 

asales

Expert
Licensed User
Longtime User
I use this in an old app. Don't know if it works yet. Put the lines in the manifest:
B4X:
SetActivityAttribute(mymodule1, android:theme, @style/Theme.Transparent)
SetActivityAttribute(mymodule2, android:theme, "@android:style/Theme.Holo.Light")
 
Upvote 0

watesoft

Active Member
Licensed User
Longtime User
I use this in an old app. Don't know if it works yet. Put the lines in the manifest:
B4X:
SetActivityAttribute(mymodule1, android:theme, @style/Theme.Transparent)
SetActivityAttribute(mymodule2, android:theme, "@android:style/Theme.Holo.Light")

Thank you for your response, I have tried it and it works, however, It couldn't find "@style/Theme.Transparent", but it has nothing to do with my app.​

 
Upvote 0
Top