开发者

how to combine two themes in android

开发者 https://www.devze.com 2023-03-09 20:20 出处:网络
Can so开发者_运维百科meone please tell me how to combine two theme values(Ex:@android:style/Theme.Dialog and @android:style/Theme.NoTitleBar) for android:theme attribute in manifest file.

Can so开发者_运维百科meone please tell me how to combine two theme values(Ex:@android:style/Theme.Dialog and @android:style/Theme.NoTitleBar) for android:theme attribute in manifest file.

Thanks,

venu


The solution is to create custom theme. I created a custom theme to combine both @android:style/Theme.Dialog and @android:style/Theme.NoTitleBar as below
<style parent="android:style/Theme.Dialog" name="Theme.NoTitleBar.Dialog"> <item name="android:windowNoTitle">true</item> </style>


Try something like this:

 android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
0

精彩评论

暂无评论...
验证码 换一张
取 消