简体   繁体   中英

Android: Where to find Seekbar drawable “scrubber_control_normal_holo”

My primary problem is I want to increase the size of the thumb of the Seekbar, so I found this post: Changing size of seekbar thumb

From there it said i can create thumb_size.xml and add the below code inside:

<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >

<item>
    <shape>
        <size
            android:height="40dp"
            android:width="40dp" />

        <solid android:color="@android:color/transparent" />
    </shape>
</item>
<item android:drawable="@drawable/scrubber_control_normal_holo"/>

However then the Android Studio give me error message saying that it cannot find the

scrubber_control_normal_holo

Then I find this post: Android: Where to find the RadioButton Drawable?

However in my SDK folder /platforms/android-17/data/res/drawable folder, I still cannot find this file, I can only find something like:

seek_thumb.xml

but when I try to use it, it still give me error.

At last I can find the resource images in the following folders (for different device size):

  • SDK folder\\platforms\\android-17\\data\\res\\drawable-hdpi
  • SDK folder\\platforms\\android-17\\data\\res\\drawable-mdpi
  • SDK folder\\platforms\\android-17\\data\\res\\drawable-xhdpi
  • SDK folder\\platforms\\android-17\\data\\res\\drawable-xxhdpi
  • SDK folder\\platforms\\android-17\\data\\res\\drawable-xxxhdpi

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM