I needed to scale Seekbar thumb size based on physical device size (DP).
The layout was designed for 360 DP phones, so thumb image looked a bit too small for tablets.
And I didn't want to make other layout.xml just for this issue.
1. Added a static method to my Util class which scales thumb image size based on the current device size:
2. Then set padding to Seekbar so it wouldn't clip the scaled thumb image:
[Android Studio 2.0]
[compileSdkVersion 23]
No comments:
Post a Comment