sql - Android SQLite How to format data? -
currently have textview gets populated data string sqlite database, not pretty at.
currently data looks like:
1 data1 data2 data3 data4 < on same line whatever formatting afforded textview.
how format kind of data in android? have seen examples using list view.
<tablelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" > <tablelayout android:layout_width="fill_parent" android:layout_height="fill_parent" > <tablerow android:id="@+id/tablerow1" android:layout_width="wrap_content" android:layout_height="wrap_content" > <textview android:layout_width="wrap_content" android:layout_height="fill_parent" android:text="weight" /> <textview android:layout_width="wrap_content" android:layout_height="fill_parent" android:text="waist" /> <textview android:layout_width="wrap_content" android:layout_height="fill_parent" android:text="chest" > <textview android:layout_width="wrap_content" android:layout_height="fill_parent" android:text="legs" /> <textview android:layout_width="wrap_content" android:layout_height="fill_parent" android:text="arms" /> </textview> </tablerow> <textview android:id="@+id/tvdbinfo" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="info db" /> </tablelayout> </tablelayout>
the xml database information displayed shown below:
<textview android:id="@+id/tvdbinfo" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="info db" />
there doesn't seem in way of specifying column widths, sort of thing, seeing sqlite output pretty string output
Comments
Post a Comment