左图像-这是我的快速卷轴拇指(小)需要的尺寸。
右图像-,这是我得到的大小(非常大)。


MyFragment.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ListView
android:id="@+id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"></ListView>
</RelativeLayout>style.xml
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/ColorPrimary</item>
<item name="colorPrimaryDark">@color/ColorPrimaryDark</item>
</style>
<style name="AppTheme.Main" parent="Theme.AppCompat">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/ColorPrimary</item>
<item name="colorPrimaryDark">@color/ColorPrimaryDark</item>
<item name="android:fastScrollThumbDrawable">@drawable/ic_datejumper</item>
<item name="android:fastScrollTrackDrawable">@android:color/transparent</item>
</style>
<style name="AppTheme.Pref" parent="Theme.AppCompat">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/ColorPrimary</item>
<item name="colorPrimaryDark">@color/ColorPrimaryDark</item>
</style>
</resources>我尝试了我在互联网上发现的所有方法和堆栈溢出。
如果您想检查,左边的图片来自应用程序。
发布于 2015-06-12 18:14:54
刚刚找到了一个不寻常的答案
我把png放在了可绘图的xhdpi文件夹中,这就完成了这个任务。
https://stackoverflow.com/questions/30771246
复制相似问题