Hi,
I am having a TableRow wrapped inside TableLayout.
In the TableRow there are two widget, one is ImageButton and one is
TextView. I want to center align the text of TextView. Now, the problem
which is occurring is that the text is getting centre aligned corresponding
to the TextView and not according the TableRow.
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:stretchColumns="1"
>
<TableRow android:background="@drawable/grey"
android:gravity="center">
<ImageButton
android:id="@+id/categoryHome"
android:src="@drawable/home_icon"
android:padding="3dip"
android:background="@null"
android:layout_gravity="bottom"
/>
<TextView
android:id="@+id/categoryTitle"
android:gravity="center"
android:layout_width="fill_parent"
android:textColor="@drawable/black"
android:textStyle="bold"
android:textSize="20sp"
/>
</TableRow>
</TableLayout>
Please help in this regard.
Thanks & Regards,
Laxmi Verma
--
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