Skip to content

Problem to change thumb and track drawables #44

@anto2b

Description

@anto2b

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions