I'm new in android and I've found this great android page curl in this link http://code.google.com/p/android-page-curl/. My question is, how to add TextView?? I've tried it but it always force close when i try. Here is my code in layout xml.
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent">
<cv.tarie.pagecurl.PageCurlView
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:id="@+id/dcgpagecurlPageCurlView1"/>
<LinearLayout android:id="@+id/textlayout"
android:layout_width="fill_parent" android:layout_height="100dp"
android:layout_alignParentBottom="true" android:gravity="center"
android:background="#55000000" android:padding="5dp">
<TextView android:id="@+id/dialog" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:textSize="18dp"
android:textColor="#FFFFFF" />
</LinearLayout>
</RelativeLayout>
And i add this code in PageCurlView.
TextView tv = (TextView) findViewById(R.id.dialog);
tv.setText("Hello!");
There are wrong in my code??
Thanks..