下面是我在xml中的开关:
<Switch
android:id="@+id/mySwitch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:textOff="OFF"
android:textOn="ON" />
到目前为止,我在<switch>
中找不到可以使开关更大的属性:
android-textSize
控制紧挨着开关的描述大小,而不是开关本身
android:switchMinWidth
,控制每个开关组件的宽度(开/关)
我只是想让我的开关更大一些,并且开关的文字也会产生开关变大的效果。
我有没有遗漏什么东西?
发布于 2016-09-22 12:55:54
https://stackoverflow.com/questions/19785623
复制相似问题