[英]Android table layout: border?
我試圖在布局周圍設置邊框,但似乎無法使其工作。 這就是我所擁有的,我正在嘗試獲得類似邊框的東西。
我的 XML 是這樣的:
<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>
請艾米幫忙? 干杯
只需這樣做:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.