关于CheckBox居中配置
来源:互联网 发布:驾校时间安排 知乎 编辑:程序博客网 时间:2024/06/05 20:36
参考示例:
<LinearLayout
android:id="@+id/bottom_layout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:background="@drawable/video_chat_bottom_selector"
android:clickable="true"
android:orientation="vertical"
android:paddingBottom="3dp"
android:paddingTop="3dp"
android:gravity="center">
<CheckBox
android:id="@+id/speaker_checkbox"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:button="@null"
android:background="@drawable/video_bottom_bar_speaker"
android:clickable="false"
android:focusableInTouchMode="false"
android:textColor="@color/white"
android:textSize="20dip" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/video_speaker"
android:textColor="@color/white" />
</LinearLayout>
红色部分保证了checkbox的居中显示
- 关于CheckBox居中配置
- 关于居中
- 关于居中
- 关于checkbox
- css实现input、checkbox垂直居中
- checkbox与文字居中对齐问题
- 关于DIV居中布局
- 关于DIV垂直居中
- CSS关于元素居中
- 关于水平居中
- 关于css垂直居中
- 关于<dl>的居中
- 关于水平居中
- 关于垂直居中
- 关于radioButton居中问题
- 关于居中问题
- 关于css元素居中
- 关于文本居中
- Arduino 红外解码算法
- vs2010测试第一个OpenGL开发
- Eclipse 指定缺省的文件编码
- DOS for 用法
- mysql for linux安装步骤
- 关于CheckBox居中配置
- 正则表达式的使用 和 文件相关操作
- HDU 4681 String
- 百度地图新手教程4
- 几个html常用取尺寸属性
- APPLET签名
- GUI
- boost::spirit验证字符串是否符合四则运算规则
- 一步一步学数据结构之n--n(图--邻接链表法实现)