Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem to change thumb and track drawables #44

Open
anto2b opened this issue Apr 15, 2014 · 1 comment
Open

Problem to change thumb and track drawables #44

anto2b opened this issue Apr 15, 2014 · 1 comment

Comments

@anto2b
Copy link

anto2b commented Apr 15, 2014

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.

@hugocroch
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants