• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps TableRow columns

oriz

Newbie
Hey i have this code
HTML:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="horizontal"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context=".MainActivity" >
    <TableLayout
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:layout_marginTop="60dp"
        android:layout_gravity="center">

        <TableRow
            android:id="@+id/tableRow1"
            android:layout_width="80dp"
            android:layout_height="80dp" >

            <Button
                
                android:id="@+id/Button02"
                android:layout_width="90dp"
                android:layout_height="90dp"
                android:text="Button" />
            
            <Button
                android:id="@+id/Button01"
                android:layout_width="90dp"
                android:layout_height="90dp"
                android:text="Button" />

            <Button
                android:id="@+id/button1"
                android:layout_width="90dp"
                android:layout_height="90dp"
                android:text="Button" />

        </TableRow>
                <View    android:layout_width="match_parent"
        android:layout_height="2dp"
        android:background="@android:color/black" />
        <TableRow
            android:id="@+id/tableRow2"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" >

            <Button
                android:id="@+id/Button05"
                android:layout_width="90dp"
                android:layout_height="90dp"
                android:text="Button" />

            <Button
                android:id="@+id/Button04"
                android:layout_width="90dp"
                android:layout_height="90dp"
                android:text="Button" />

            <Button
                android:id="@+id/Button03"
                android:layout_width="90dp"
                android:layout_height="90dp"
                android:text="Button" />

        </TableRow>

<View
        android:layout_width="match_parent"
        android:layout_height="2dp"
        android:background="@android:color/black" />
        <TableRow
            android:id="@+id/tableRow3"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" >

            <Button
                android:id="@+id/Button08"
                android:layout_width="90dp"
                android:layout_height="90dp"
                android:text="Button" />

            <Button
                android:id="@+id/Button07"
                android:layout_width="90dp"
                android:layout_height="90dp"
                android:text="Button" />

            <Button
                android:id="@+id/Button06"
                android:layout_width="90dp"
                android:layout_height="90dp"
                android:text="Button" />

        </TableRow>

<View
        android:layout_width="match_parent"
        android:layout_height="2dp"
        android:background="@android:color/black" />
    </TableLayout>

</LinearLayout>

this is a button table row of 3x3 and there are 3 lines that seperate the rows
but i need to seperate the column to and it doesnt let me to do so when i do it it just make a big black line that covers half of the screen.

thank you very much!!
 
Back
Top Bottom