android自定义标题不能填满父控件处理方式

来源:互联网 发布:台湾本省人 知乎 编辑:程序博客网 时间:2024/05/19 11:20
<style name="themeTitle" parent="android:Theme">
        <item name="android:windowTitleSize">50dip</item>
        <item name="android:windowContentOverlay">@null</item>
        <item name="android:padding">0sp</item>

    </style>

添加上面的style 增加<item name="android:padding">0sp</item> 


在配置那里引用  android:theme="@style/themeTitle" 即可


0 0
原创粉丝点击