【发布时间】:2017-08-15 09:18:21
【问题描述】:
我的主要问题是我想增加Seekbar的拇指大小,所以我找到了这个帖子:Changing size of seekbar thumb
从那里说我可以创建 thumb_size.xml 并在里面添加以下代码:
<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"/>
然而,Android Studio 给我错误消息说它找不到
scrubber_control_normal_holo
然后我找到了这个帖子:Android: Where to find the RadioButton Drawable?
但是在我的 SDK 文件夹 /platforms/android-17/data/res/drawable 文件夹中,我仍然找不到这个文件,我只能找到类似的东西:
seek_thumb.xml
但是当我尝试使用它时,它仍然给我错误。
【问题讨论】:
-
您可以在以下位置找到源代码:@android:drawable/scrubber_control_normal_holo 尽管由于资源是私有的,因此它对您没有进一步帮助。因此,您需要像您已经回答的那样从文件夹中复制它
标签: android seekbar seekbar-thumb