1
我想爲我的SwitchCompat小部件設置描述。 任何人都知道如何?將描述添加到android SwitchCompat小部件
「android:text」是前導文本,但我想設置說明或「摘要」。 (我不是很好用英語)
我的代碼:
<android.support.v7.widget.SwitchCompat
android:id="@+id/my_switch"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/switch_title"
android:button="@null"
android:padding="20dp"/>