I am having problem with custom seek bar I am not getting same as i expect, I am using 2nd image as progress drawable and first as thumb, but when i use wrap content it is small and when i use fill parent it is repeating and the seek bar different from the 2nd image in the UI?
Asked
Active
Viewed 1,131 times
0
-
Would you post your code ? – Tugrul Aug 26 '13 at 09:25
-
– SHASHIDHAR MANCHUKONDA Aug 26 '13 at 09:26
-
– SHASHIDHAR MANCHUKONDA Aug 26 '13 at 09:35
-
Try this, http://stackoverflow.com/questions/16163215/android-styling-seek-bar – Tugrul Aug 26 '13 at 10:12
2 Answers
0
You should use Nine-path graphics. With this android will automatically resize your image based on borders you provide in graphics.

Blaz
- 1,935
- 15
- 14
-
I want seekbar size is same as progressdrawable (image2 ) size. thank you :) – SHASHIDHAR MANCHUKONDA Aug 26 '13 at 09:33
-
-
Check this, http://tugrulasik.com/2013/07/14/9-patch-cizim-editorunun-kullanimi-wysiwyg-editor/ – Tugrul Aug 26 '13 at 10:10
-
i know how to use 9 patches in this case it wont worked for me. – SHASHIDHAR MANCHUKONDA Aug 26 '13 at 11:15
0
set maxHeight and minHeight of seekbar properties. example:
maxHeight = 40dp
minHeight = 40dp

Thanh Nguyen
- 53
- 4