Custom title bar without padding (Android)

后端 未结 7 626
失恋的感觉
失恋的感觉 2020-11-30 07:39

So I am using the techniques in this thread to use a custom background for my titlebar. Unfortunately the framework places my layout inside a FrameLayout (

相关标签:
7条回答
  • 2020-11-30 08:43

    I added the following padding item the AppTheme in styles.xml

    <style name="AppTheme" parent="AppBaseTheme">
    ...
    <item name="android:padding">0dp</item>
    ...
    </style>
    

    The Application manifest uses that theme:

    <application 
    ...
    android:theme="@style/AppTheme" >
    ...
    

    This resolved it for me.

    0 讨论(0)
提交回复
热议问题