android - TextView's text alignment -
android - TextView's text alignment -
<?xml version="1.0" encoding="utf-8"?> <tablelayout android:id="@+id/widget33" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" android:stretchcolumns="*" xmlns:android="http://schemas.android.com/apk/res/android"> <tablerow android:id="@+id/widget34" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <textview android:id="@+id/widget35" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="textview" android:gravity="center" /> <textview android:id="@+id/widget36" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="textview" android:gravity="center" /> <textview android:id="@+id/widget37" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="textview" android:gravity="center" /> </tablerow> </tablelayout>
the text in textviews
not aligned centre
though gravity
set center
.text shifted extreme right.when check same code in droiddraw every thing seems fine.whats happening?
as long utilize wrap_content
android:layout_width
, android:layout_height
, gravity not anything.
android
Comments
Post a Comment