开发者

How to exclude the title from theme applied to the application?

开发者 https://www.devze.com 2022-12-29 03:04 出处:网络
I\'m using a theme for my app to set some common layout features. One of the things I change in this theme is the text style. I change the color and the size of the text in the whole app. Sadly the

I'm using a theme for my app to set some common layout features.

One of the things I change in this theme is the text style. I change the color and the size of the text in the whole app. Sadly the text in the titlebar is also changed and the result is a somewhat blurry ugly style. I don't know if it is the color or the size of开发者_StackOverflow社区 the text

Is it possible to somehow overwrite the style for the title in the theme? Or exclude the title?


Could you just set the title color separately programatically using the method setTitleColor of the Windows class?

So you could overwrite the color you have set in the theme file


you could go full screen : Hiding Title in a Fullscreen mode?

or

have a custom title bar

Custom title bar without padding (Android)


Just turn off the title:

requestWindowFeature(Window.FEATURE_NO_TITLE); 

Am I missing somthing?

0

精彩评论

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