Reputation: 131
I am trying to have a border around a layout but can’t seem to make it work . Here’s what I have, and I’m trying to get something like the border shown on this.
My XML is this:
<TableLayout
android:layout_width="110dp"
android:layout_height="75dp"
android:layout_marginStart="16dp"
android:layout_marginLeft="16dp"
android:layout_marginBottom="220dp"
app:layout_constraintBottom_toBottomOf="parent"
android:background="#B79494"
app:layout_constraintStart_toStartOf="parent">
<TableRow
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:baselineAligned="false">
android:color="@color/colorPrimaryDark"
android:width="4dp"
android:background="#C5BBBB"
<TextView
android:id="@+id/homeTest1"
android:layout_width="47dp"
android:layout_height="54dp"
android:gravity="center"
android:padding="0.25dip"
android:text="Space Line" />
<TextView
android:id="@+id/SowTest1"
android:layout_width="25dp"
android:layout_height="30dp"
android:gravity="center"
android:padding="0.25dip"
android:text="A test"
android:textSize="12sp">
</TextView>
</TableRow>
</TableLayout>
Amy help please? Cheers
Upvotes: 0
Views: 52
Reputation: 2718
Simply do this:
Upvotes: 1