0
我创建的自定义从 this搜索栏的布局,现在我在XML文件中获取错误这样自定义SeekBar布局错误?
Failed to parse file C:\Documents and Settings\jkreddy\Desktop\RAJA\programs\
Light\res\drawable\seekbar_progress.xml
这是XML代码
<SeekBar
android:id="@+id/frequency_slider"
android:layout_marginLeft="10px"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:max="9"
android:progress="0"
android:secondaryProgress="0"
android:progressDrawable="@drawable/seekbar_progress"
android:thumb="@drawable/seek_thumb"/>
代码seekbar_progress_bg
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<clip>
<shape>
<gradient
android:startColor="#FF5e8ea3"
android:centerColor="#FF32a0d2"
android:centerY="0.1"
android:endColor="#FF13729e"
android:angle="270"/>
</shape>
</clip>
</item>
<item>
<clip>
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/colorbar"
android:tileMode="repeat"
android:antialias="true"
android:dither="false"
android:filter="false"
android:gravity="left"/>
</clip>
</item>
代码seekbar_progress
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@android:id/background">
<nine-patch
xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/colorbar_e"
android:dither="true"/>
</item>
<item android:id="@android:id/secondaryProgress">
<clip>
<shape>
<gradient
android:startColor="#80028ac8"
android:centerColor="#80127fb1"
android:centerY="0.75"
android:endColor="#a004638f"
android:angle="270"/>
</shape>
</clip>
</item>
<item
android:id="@android:id/progress"
android:drawable="@drawable/seekbar_progress_bg"/>
你能提供你的xml代码吗?我想,你可能已经修改它为你的应用程序。 – Hiral
你可以展示你的资源如何看起来像你的资源android:progressDrawable =“@ drawable/seekbar_progress” android:thumb =“@ drawable/seek_thumb”? – Yahor10