我想为我的 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"/>