TableRow 背景问题以及修改对话框标题高度或者图片
16lz
2021-01-23
<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);
更多相关文章
- android listview 的一些属性
- 相对布局 RelativeLayout 常用属性介绍
- Android RelativeLayout用到的一些重要的属性
- android布局属性预览
- Android xml ListView 的divider属性
- 『ANDROID』android:layout_gravity和android:gravity属性的区别
- Android下xml中RelativeLayout布局常见属性