Hi guys,
I am trying to center align the text in my textview for btn_quit but
the android:textalign="center" is giving me error. The eclipse is
telling me that there is no resource identifier for textalign and even
though I have placed textview widget package in the src.. can anyone
help me on this? Thank you very much.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:id="@+id/widget29"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<TextView android:id="@+id/btn_quit"
android:layout_width="100px"
android:layout_height="30px"
android:textSize="14sp"
android:text="Abort Game?"
android:textAlign="center"
android:layout_alignParentBottom="true"
android:clickable="true">
</TextView>
<TextView android:id="@+id/txt_level"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Level">
</TextView>
<TextView
android:id="@+id/txt_score"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Score"
android:layout_alignParentBottom="true"
android:layout_alignLeft="@+id/txt_level">
</TextView>
<ImageButton android:id="@+id/img_gameshark"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true">
</ImageButton>
</RelativeLayout>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---