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.
Asked
Active
Viewed 99 times
1 Answers
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,312
- 2
- 23
- 35
-
I would like to see transparency as a percentage of the background of my app – ddd Mar 17 '14 at 23:09
-
What would be behind the app so that it could be transparent? – ElectronicGeek Mar 17 '14 at 23:10
-
I want the background of the LinearLayout is visible in the percentage even having in front of TableLayout – ddd Mar 17 '14 at 23:16
-
So you want the LinearLayout to be visible behind the TableLayout? – ElectronicGeek Mar 17 '14 at 23:18
-
Yes, but I want to see also the borders of TableLayout – ddd Mar 17 '14 at 23:19
-
That seems like there would be a lot of overlap, it seems confusing. – ElectronicGeek Mar 17 '14 at 23:20
-
I don't think it's possible to have two layouts overlapping. You can have them transparent so that you can see the homescreen, though. – ElectronicGeek Mar 18 '14 at 00:26