android-switch-backport icon indicating copy to clipboard operation
android-switch-backport copied to clipboard

Problem to change thumb and track drawables

Open anto2b opened this issue 10 years ago • 1 comments

Hi,

I generated my custom style of Switch in this site : http://android-holo-colors.com/ I added the drawable folders to my project and I inflated the Custom Switch like this :

<org.jraf.android.backport.switchwidget.Switch xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/res/com.myproject" android:layout_width="wrap_content" android:layout_height="wrap_content" app:thumb="@drawable/switch_inner_holo_light" app:track="@drawable/switch_track_holo_light" />

My custom style is applied correctly on Android 2.3 BUT NOT on Android 4.2 like Samsung Galaxy S4.

I also tried to create "drawable-xxx-v16" folders with the drawables but doesn't work too. Where is my problem ?

Soory for my English, I am French. Thanks you for your help.

anto2b avatar Apr 15 '14 07:04 anto2b

I am on the same problem as you. If I find out why, I will write down the solution.

hugocroch avatar Aug 05 '14 20:08 hugocroch