android 自定义TitleBar...

来源:互联网 发布:网络协议的端口号 编辑:程序博客网 时间:2024/04/29 01:21
    requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);    setContentView(R.layout.main);    getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.title_bar);
  1.  <item name="android:windowTitleSize">50dp</item>  
  2.      <item name="android:windowTitleBackgroundStyle">@style/CustomWindowTitleBackground</item>  

0 0
原创粉丝点击