table - android increase space between words -



table - android increase space between words -

i working on android app contain table , rows. in each row there 3 values. problem these values close each other , want increment space between them each 1 above column, this:

but displayed this:

here table layout in xml file:

<tablelayout android:layout_width="fill_parent" android:layout_height="fill_parent" > <tablerow> <textview android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="name" android:layout_weight="1" /> <textview android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="email" android:layout_weight="1" /> <textview android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="password" android:layout_weight="1" /> </tablerow> <textview android:id="@+id/user_info" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="get user info"/> </tablelayout>

and info of user in java file:

string userdata = "" + html.fromhtml(username + useremail + userpassword );

instead of single textview strings concatenated, add together sec tablerow containing 3 separate textview controls, first one.

that way should aligned.

android table

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -