Tablerow With Image And 2 Textview
I`m having problems for do something like this: http://imageshack.us/photo/my-images/824/examplehm.png/ My xml code shows 3 columns in the row but i want 2 columns and the second c
Solution 1:
Put LinearLayout
by the image and then put in it two TextViews
, or use RelativeLayout
for entire row.
Here is example of the first solution:
<?xml version="1.0" encoding="utf-8"?><TableLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="fill_parent"android:layout_height="fill_parent" ><TableRow><ImageViewandroid:id="@+id/imagen"android:layout_width="wrap_content"android:layout_height="wrap_content"android:paddingLeft="2dip"android:paddingRight="5dip"android:src="@drawable/ic_launcher"/><LinearLayoutandroid:layout_width="wrap_content"android:layout_height="fill_parent"android:orientation="vertical"android:gravity="center_vertical"><TextViewandroid:id="@+id/cabecera"android:layout_width="wrap_content"android:layout_height="wrap_content"android:textStyle="bold"android:textSize="12px"android:text="TextView"/><TextViewandroid:id="@+id/descripcion"android:layout_width="wrap_content"android:layout_height="wrap_content"android:textStyle="normal"android:textSize="10px"android:text="TextView" /></LinearLayout></TableRow>
Post a Comment for "Tablerow With Image And 2 Textview"