1. Download our Official Android App: Forums for Android!

Table Layout Problem, Please Help.

Discussion in 'Android Apps & Games' started by Wazzup_Dev, May 4, 2011.

  1. Wazzup_Dev

    Wazzup_Dev Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    May 4, 2011

    May 4, 2011
    1
    0
    5
    I am trying to add a Table Layout under a picture but it will not show up.
    Code:
    Code (Text):
    1. <?xml version="1.0" encoding="utf-8"?>
    2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    3.     android:layout_height="fill_parent" android:orientation="vertical" android:layout_width="wrap_content" android:layout_gravity="center">
    4. <ScrollView android:id="@+id/scrollView1" android:layout_width="fill_parent" android:layout_height="wrap_content">
    5.     <LinearLayout android:layout_width="fill_parent" android:id="@+id/linearLayout1" android:layout_height="fill_parent">
    6.         <ImageView android:src="@drawable/item" android:layout_width="fill_parent" android:layout_gravity="center" android:layout_height="wrap_content" android:id="@+id/imageView1" android:scaleType="center"></ImageView>
    7.  
    8.  
    9. <TableLayout android:stretchColumns="1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/tableLayout1">
    10.  
    11. <TableRow>
    12.         <TextView
    13.             android:layout_column="1"
    14.             android:text="Test"
    15.             android:padding="3dip" />
    16.         <TextView
    17.             android:text="TEst"
    18.             android:gravity="right"
    19.             android:padding="3dip" />
    20.     </TableRow>
    21.  
    22. </TableLayout>
    23.  
    24.  
    25.     </LinearLayout>
    26. </ScrollView>
    27.  
    28.    
    29.     </LinearLayout>
    30.  
     

    Advertisement

Share This Page

Loading...