Skip to content Skip to sidebar Skip to footer

Toggle Button Font Type Remains Unchanged

I am facing this strange issue : following is my toggle button : Copy

} then in xml ,

           <com.mysample.CustomToggleButton 
            android:id="@+id/toggle_notify"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="right"
            android:background="@drawable/selector_toggle_yes_no"
            style="@style/edit_profile_toggle_style"
            android:checked="false"
            android:paddingLeft="5dp"
            android:paddingRight="5dp"
            android:gravity="center|right"/>

and tada ... it works !!! :D

Solution 2:

Use "android:textStyle"

<itemname="android:textStyle">bold</item>

also make sure your style extends TextAppearance

<stylename="edit_profile_toggle_style"parent="@android:style/TextAppearance">

Post a Comment for "Toggle Button Font Type Remains Unchanged"