android - Error inflating Coverflow -
i've been trying widget working in android project: https://code.google.com/p/android-coverflow/source/browse/
it's called coverflow, , kind of replaces old gallery widget. implementing seemed pretty straightforward until got error:
08-16 17:33:08.289: e/androidruntime(15031): caused by: android.view.inflateexception: binary xml file line #11: error inflating class pl.polidea.coverflow.coverflow this xml file error referring to:
<pl.polidea.coverflow.coverflow class="pl.polidea.coverflow.coverflow" android:id="@+id/coverflow" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_margintop="5dip" > </pl.polidea.coverflow.coverflow> this question has been asked before on stackoverflow answer given here: android coverflow : error inflating class pl.polidea.coverflow.coverflow didn't work me.
you should use way:
<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <view class="pl.polidea.coverflow.coverflow" xmlns:coverflow="http://schemas.android.com/apk/res/pl.polidea.coverflow" coverflow:imagewidth="100dip" coverflow:imageheight="150dip" android:id="@+id/coverflow" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_margintop="5dip"> </view> <pl.polidea.coverflow.coverflow xmlns:coverflow="http://schemas.android.com/apk/res/pl.polidea.coverflow" coverflow:imagewidth="100dip" coverflow:imageheight="150dip" coverflow:withreflection="true" coverflow:imagereflectionratio="0.2" coverflow:reflectiongap="2dip" android:id="@+id/coverflowreflect" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_margintop="5dip" /> <textview android:text="status" android:layout_width="fill_parent" android:layout_height="wrap_content" android:padding="5dip" android:id="@+id/statustext"></textview> </linearlayout>
Comments
Post a Comment