Skip to content

Commit 2eb5b16

Browse files
committed
implementing MD in test for mac andriod studio.xml
1 parent 1183f18 commit 2eb5b16

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

app/src/main/res/layout/test.xml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@
1515

1616
<LinearLayout
1717
android:layout_width="match_parent"
18-
android:layout_height="wrap_content"
18+
android:layout_height="match_parent"
1919
android:gravity="right"
2020
android:orientation="vertical">
2121

2222
<!-- Media -->
2323
<RelativeLayout
2424
android:layout_width="match_parent"
25-
android:layout_height="126dp">
25+
android:layout_height="106dp">
2626

2727
<ImageView
2828
android:layout_width="53dp"
2929
android:layout_height="43dp"
3030
android:layout_alignParentTop="true"
31-
android:layout_marginTop="13dp"
31+
android:layout_marginTop="18dp"
3232
android:contentDescription="test"
3333
android:scaleType="centerCrop"
3434
app:srcCompat="@drawable/jira" />
@@ -39,9 +39,9 @@
3939
android:layout_alignParentStart="true"
4040
android:layout_alignParentLeft="true"
4141
android:layout_alignParentBottom="true"
42-
android:layout_marginStart="93dp"
43-
android:layout_marginLeft="93dp"
44-
android:layout_marginBottom="92dp"
42+
android:layout_marginStart="92dp"
43+
android:layout_marginLeft="92dp"
44+
android:layout_marginBottom="71dp"
4545
android:text="TS-11"
4646
android:textAppearance="?attr/textAppearanceHeadline6" />
4747

@@ -51,10 +51,10 @@
5151
android:layout_alignParentStart="true"
5252
android:layout_alignParentLeft="true"
5353
android:layout_alignParentBottom="true"
54-
android:layout_marginStart="73dp"
55-
android:layout_marginLeft="73dp"
54+
android:layout_marginStart="72dp"
55+
android:layout_marginLeft="72dp"
5656
android:layout_marginTop="8dp"
57-
android:layout_marginBottom="42dp"
57+
android:layout_marginBottom="21dp"
5858
android:text="Investigate how blue tooth works on Android"
5959
android:textAppearance="?attr/textAppearanceBody2"
6060
android:textColor="?android:attr/textColorSecondary"
@@ -67,9 +67,9 @@
6767
android:layout_alignParentStart="true"
6868
android:layout_alignParentLeft="true"
6969
android:layout_alignParentBottom="true"
70-
android:layout_marginStart="64dp"
71-
android:layout_marginLeft="64dp"
72-
android:layout_marginBottom="91dp"
70+
android:layout_marginStart="62dp"
71+
android:layout_marginLeft="62dp"
72+
android:layout_marginBottom="68dp"
7373
app:srcCompat="@drawable/epic" />
7474

7575
</RelativeLayout>
@@ -88,13 +88,13 @@
8888
android:layout_height="wrap_content"
8989
android:layout_marginEnd="8dp"
9090
android:layout_marginRight="8dp"
91-
android:text="test" />
91+
android:text="START" />
9292

9393
<com.google.android.material.button.MaterialButton
9494
style="?attr/borderlessButtonStyle"
9595
android:layout_width="wrap_content"
9696
android:layout_height="wrap_content"
97-
android:text="test" />
97+
android:text="DONE" />
9898
</LinearLayout>
9999

100100
</LinearLayout>

app/src/main/res/values/styles.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
//md控制全局卡片
4242
<style name="AppCard" parent="Widget.MaterialComponents.CardView">
4343
<item name="cardElevation">8dp</item>
44-
<item name="cardCornerRadius">18dp</item>
44+
<item name="cardCornerRadius">1dp</item>
4545
</style>
4646

4747

0 commit comments

Comments
 (0)