例外が発生するのは次のxmlファイルです。この中で、scroll textviewに問題があり、インフレータ例外が発生します。助けてください。コードの問題は、com.sevya.alertman.ScrollingTextViewに依存していると思います。次のxmlファイルを確認して、解決策を教えてください
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#cdcdcd"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<!-- Volume -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="60dp"
android:background="@drawable/background"
android:clickable="false"
android:orientation="vertical"
android:weightSum="10">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="5"
android:orientation="horizontal"
android:weightSum="10">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="7.5"
android:gravity="bottom"
android:paddingLeft="10dp"
android:text="Default Volume"
android:textAppearance="@android:style/TextAppearance.Large"
android:textColor="#2E2E2E"
android:textSize="19dp"/>
<TextView
android:id="@+id/textview_volume_settings"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="2.5"
android:gravity="center_horizontal|center_vertical"
android:text=""/>
</LinearLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="5">
<SeekBar
android:id="@+id/seekbar_volume_settings"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:max="100"
android:maxHeight="9dp"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:progressDrawable="@drawable/progress"
android:thumb="@xml/thumb_style"/>
</RelativeLayout>
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#000000"/>
<!-- Ringtone -->
<LinearLayout
android:id="@+id/linearlayout_ringtone_settings"
android:layout_width="match_parent"
android:layout_height="60dp"
android:background="@drawable/background"
android:clickable="true"
android:orientation="horizontal"
android:weightSum="10">
<LinearLayout
android:layout_width="0dp"
android:layout_height="60dp"
android:layout_weight="7.5"
android:orientation="vertical"
android:weightSum="10">
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="5"
android:gravity="bottom"
android:paddingLeft="10dp"
android:text="Default Ringtone"
android:textAppearance="@android:style/TextAppearance.Large"
android:textColor="#2E2E2E"
android:textSize="19dp"/>
<com.sevya.alertman.ScrollingTextView
android:id="@+id/textview_ringtone_settings"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="5"
android:ellipsize="marquee"
android:fadingEdge="horizontal"
android:gravity="top"
android:lines="1"
android:marqueeRepeatLimit="marquee_forever"
android:paddingLeft="10dp"
android:scrollHorizontally="true"
android:text="@string/defaultringtone"
android:textAppearance="@android:style/TextAppearance.Small"
android:textColor="#2E2E2E"/>
</LinearLayout>
<RelativeLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2.5"
android:gravity="center">
<ImageView
android:layout_width="wrap_content"
android:layout_height="40dp"
android:contentDescription="@string/downarrow"
android:gravity="center_horizontal|center_vertical"
android:src="@android:drawable/ic_menu_more"/>
</RelativeLayout>
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#000000"/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
コードを実行すると、次のエラーが発生しました。これらの例外を削除するにはどうすればよいか教えてください:
06-03 08:37:40.161: E/ERROR(9515): android.view.InflateException: Binary XML file line #125: Error inflating class com.sevya.alertman.ScrollingTextView
これは、プログラムを実行したときに発生したエラーです。