-1
我正在使用開關小部件。這裏是代碼如何在android中增加開關部件的拇指大小?
<Switch
android:id="@+id/switchFabric"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:showText="true"
android:switchTextAppearance="@style/SwitchTextAppearance"
android:text="Do you have fabric ?"
android:textColor="@color/black_overlay"
android:textOff="No"
android:textOn="Yes"
android:thumbTextPadding="@dimen/padding_4"
android:padding="@dimen/padding_8"
android:thumbTint="@color/white"
android:layout_marginTop="@dimen/margin_10"
android:layout_marginBottom="@dimen/margin_20"
/>
它出來是這個
我想增加拇指的大小,以便有文字周圍有足夠的填充。我曾嘗試與
thumbPadding
填充試驗
switchMinWidth
如何實現這一目標? 任何建議表示讚賞。提前致謝。
沒有抱歉,它沒有幫助。它只是增加了文本的大小。 –
結帳我編輯的答案 –