android - Custom seekBar drawable XML: set thumb size to available height -
I want the height of a button and its thumb as the screen. For example, their height is at a screen height of 10%, where the height of the container in the searcher is set to 10% of the screen height, and the height of the back is set to 'match_parent'
I Customized. So I created a file 'res / XML' in 'thumb_drawable.xml':
& lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Size xmlns: Android = "http://schemas.android.com/apk/res/android" Android: Size = "Oval" & gt; & Lt; Shield Android: startColor = "#ffffffff" Android: endColor = "# ff585858" Android: Angle = "270" /> & Lt; Size Android: height = "20dp" Android: width = "20dp" /> & Lt; / Size & gt;
And in my layout file, this is:
Android: SeekBar Android: layout_height = "match_parent" Android: thumb = "@ xml / thumb_drawable"
What is the easiest way to change this so that the thumb can be turned into a matching buckler shape matching? Preferably all through XML instead of Java. The last question does not cut this, maybe I'm stupid:
- - this does not apply to it in XML
- - Except the size attribute results in thumb at all I am unable to see.
Thanks
Comments
Post a Comment