CheckBox选择框居于右边

2018-08-29  本文已影响443人  houjianbo188

<CheckBox

    android:id="@+id/checkbox1"

    android:layout_width="match_parent"

    android:layout_height="wrap_content"

    android:layout_margin="@dimen/px20dp"

    android:layoutDirection="rtl"

    android:text="选择框在右边"

    android:textColor="@color/all_text_33_color"

    android:textSize="@dimen/px30dp"/>

添加一个  android:layoutDirection="rtl"属性,让布局从右边到左边

上一篇 下一篇

猜你喜欢

热点阅读