출처 : http://stackoverflow.com/questions/16163215/android-styling-seek-bar
I would extract drawables and xml from Android source code and change its color to red. Here is example how I completed this for mdpi drawables: Custom
Custom:
Then copy required drawables from Android source code, I took them here: https://github.com/android/platform_frameworks_base/tree/ics-factoryrom-2-release/core/res/res It is good to copy these drawables for each hdpi, mdpi, xhdpi. For example I use only mdpi: Then using Photoshop change color from blue to red: red_scrubber_control_disabled_holo.png: red_scrubber_control_focused_holo.png: red_scrubber_control_normal_holo.png: red_scrubber_control_pressed_holo.png: red_scrubber_primary_holo.9.png: red_scrubber_secondary_holo.9.png: red_scrubber_track_holo_light.9.png: Add SeekBar to layout:
Result: Edited: Here is nice resource Android Holo Colors Generator that will help to create elements with different colors much faster. Just select color and element and it will create required drawable for xhdpi, hdpi and mdpi. | |||
'Android > Tip&Tech' 카테고리의 다른 글
홈버튼 제어하기 (0) | 2014.06.24 |
---|---|
안드로이드 투명도 코드 (0) | 2014.06.05 |
listview height 구하는 방법 (0) | 2014.02.27 |
[펌]안드로이드/Android 부모의 속성을 동일 하게 가져 가자! (0) | 2014.02.11 |
Android | Custom ListView with Titles, Icons & Counter (1) | 2014.02.07 |