-1

how do I create a table with TableLayout in XML, and have both the dark borders and the transparent background? Is there a method? thanks for your help.

ddd
  • 3
  • 5

1 Answers1

0

Here's an example of a TableLayout:

<?xml version="1.0" encoding="utf-8"?>

<!-- 2 columns -->
<TableRow
    android:id="@+id/tableRow1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:padding="5dip" >

    <TextView
        android:id="@+id/textView1"
        android:text="Column 1" />
</TableRow>

Dark borders are achieved by making a shape, see this for an example: Create borders on a android view in drawable xml, on 3 sides?

I'm not sure what you mean by a transparent background. Is it a black or white background, or one where you can see the home launcher view?

Community
  • 1
  • 1
ElectronicGeek
  • 3,142
  • 2
  • 21
  • 35