ToggleButtonLayout
ToggleButtonLayout copied to clipboard
How to change the size of toggle?
I would like to change the size of the toggle but It does not work properly. If there is a way, can you please update me.
Hey there, can you paste in here what your current XML looks like? Thanks!
current app:customLayout in the custom layout set the font size.
custom layout example:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal" android:padding="8dp">
<TextView
android:textSize="@dimen/_12sp"
android:id="@android:id/text1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:textColor="@color/text_primary_to_white"
tools:text="something" />