android.view.InflateException: Binary XML file line #254: Error inflating class com.****.***.SegmentedRadioGroup
Caused by: java.lang.ClassNotFoundException: com.***.***.SegmentedRadioGroup
これは私のdetail.xml
ファイルです:
<com.***.***.SegmentedRadioGroup
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="5dip"
android:orientation="horizontal"
android:id="@+id/segment_text"
android:checkedButton="@+id/button_one">
<RadioButton android:id="@id/button_one"
android:minWidth="150dip"
android:minHeight="40dip"
android:text="One"
android:textAppearance="?android:attr/textAppearanceSmall"
android:button="@null"
android:gravity="center"
android:textColor="@color/radio_colors" />
</com.***.***.SegmentedRadioGroup>
でdetailfragment.java
:
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
final Database db=new Database(getActivity().getApplicationContext());
View view = inflater.inflate(R.layout.detail, container, false);
// ...
}
エラーが発生しました:
View view = inflater.inflate(R.layout.detail, container, false);