0
点赞
收藏
分享

微信扫一扫

CheckedTextView 复选框左显示


<CheckedTextView
android:layout_width="wrap_content"
android:layout_height="?android:attr/listPreferredItemHeightSmall"
android:textAppearance="?android:attr/textAppearanceListItemSmall"
android:gravity="center_vertical"
android:drawableLeft="?android:attr/listChoiceIndicatorMultiple"
android:checkMark="?android:attr/listChoiceIndicatorMultiple"
android:layout_marginRight="@dimen/grid_layout_margin3"
android:layout_marginTop="@dimen/checkbox_margin"
android:text="@string/order" />


其中:android:drawableLeft控制显示在左边,checkMark控制显示在右边。

?android:attr/listChoiceIndicatorMultiple 表示复选框,?android:attr/listChoiceIndicatorSingle表示单选框

举报

相关推荐

0 条评论