首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

怎么改变窗口的标题栏的布局

2012-07-22 
如何改变窗口的标题栏的布局LinearLayout?xmlns:androidhttp://schemas.android.com/apk/res/android?an

如何改变窗口的标题栏的布局
<LinearLayout?
xmlns:android=http://schemas.android.com/apk/res/android?
android:layout_width="wrap_content"?
android:layout_height="wrap_content">?
????? <TextView android:id="@+id/text"?
??????? android:layout_width="wrap_content"?
??????? android:layout_height="wrap_content"?
??????? android:layout_alignParentLeft="true"?
??????? android:text="text" />?
????? <Button android:id="@+id/button"?
??????? android:layout_width="wrap_content"?
??????? android:layout_height="30px"?
??????? android:text="button" />?
</LinearLayout>?

三、 注意?

a)????????? 注意设置顺序?
requestWindowFeature要在setContentView之前?
getWindow().setFeatureInit最好在setContentView之后?

b)???????? 注意requestWindowFeature(Window.FEATURE_CUSTOM_TITLE)不要和其它对TITLE的设置requestWindowFeature(xxxx)一起使用

热点排行