Note that there are some explanatory texts on larger screens.

plurals
  1. PODoes TableLayout have Borders?
    primarykey
    data
    text
    <p>I am working on a droid application, and I am using a TableLayout but cannot get it to look how I want. I want to have 2 columns, one for the text and one for the monetary value, but I cannot get them centered (in the table) and showing up next to each other.</p> <p>I am trying to get it to look like this...</p> <p><a href="http://s2.postimage.org/8wpons46m/whmcs.png" rel="nofollow noreferrer">http://s2.postimage.org/8wpons46m/whmcs.png</a></p> <p>but since I cannot actually see the borders, I cannot figure out how to fix it. This is what it currently looks like...</p> <p><img src="https://i.stack.imgur.com/TFL0b.png" alt="enter image description here"></p> <p>Here is the XML layout for my Table</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:stretchColumns="0" android:background="@drawable/round_table"&gt; &lt;TableRow&gt; &lt;TextView android:layout_column="1" android:text="Today's Income:" android:typeface="sans" android:textSize="10sp" android:textColor="#000000" android:gravity="center" android:layout_width="0dip" android:padding="3dip" /&gt; &lt;TextView android:text="$0.00 USD" android:typeface="sans" android:textSize="10sp" android:textColor="#000000" android:gravity="center" android:padding="3dip" /&gt; &lt;/TableRow&gt; &lt;View android:layout_height="2dip" android:background="#000000" /&gt; &lt;TableRow&gt; &lt;TextView android:layout_column="1" android:text="Monthly Income:" android:typeface="sans" android:textSize="10sp" android:textColor="#000000" android:gravity="center" android:padding="3dip" /&gt; &lt;TextView android:text="$0.00 USD" android:typeface="sans" android:textSize="10sp" android:textColor="#000000" android:gravity="center" android:padding="3dip" /&gt; &lt;/TableRow&gt; &lt;View android:layout_height="2dip" android:background="#000000" /&gt; &lt;TableRow&gt; &lt;TextView android:layout_column="1" android:text="Annual Income:" android:typeface="sans" android:textSize="10sp" android:textColor="#000000" android:gravity="center" android:padding="3dip" /&gt; &lt;TextView android:text="$0.00 USD" android:typeface="sans" android:textSize="10sp" android:textColor="#000000" android:gravity="center" android:padding="3dip" /&gt; &lt;/TableRow&gt; &lt;/TableLayout&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload