<TableRow xmlns:android="http://schemas.android.com/apk/res/android"           android:id="@+id/admin_row"           android:layout_width="fill_parent"           android:layout_height="wrap_content"           android:gravity="center_horizontal">     <RelativeLayout android:layout_width="fill_parent"                     android:layout_height="fill_parent"                     android:orientation="horizontal"                     android:background="@color/silver"> 

如果你按照上面设置 你会发现你的背景色不能全面的扩充,所以应该把红色的部分放在tableRow 下作为属性。

2.

requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); setContentView(R.layout.my_layout); getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.my_custom_title);

<resources>     <style name="LargeTitleTheme">         <item name="android:windowTitleSize">40dip</item>     </style> </resources> 

<activity android:name=".MyCustomTitleActivity" android:theme="@style/LargeTitleTheme" /> 

其中xml文件放在values下

或者使用

requestWindowFeature(Window.FEATURE_NO_TITLE); 

更多相关文章

  1. API 23 widget.Space——属性分析
  2. selector
  3. 制作登录界面的布局时候,可以使用 android:stretchColumns="0,3"
  4. android listview 的一些属性
  5. Android布局属性大全
  6. 相对布局 RelativeLayout 常用属性介绍
  7. Android(安卓)RelativeLayout用到的一些重要的属性
  8. android布局属性预览
  9. Android(安卓)xml ListView 的divider属性

随机推荐

  1. Android实现View的任意拖动
  2. [zz]android框架示意图
  3. Mac通过Android aapt解析apk包名、版本号
  4. Volley的基本使用
  5. Android Jni开发环境搭建完整版
  6. EditText点击隐藏hint
  7. Android中Activity启动过程源码阅读笔记:
  8. 【Android】关联source code的方法
  9. Android监听耳机按键事件
  10. Android Activity启动和退出过程中onResu