Skip to content

Commit 1183f18

Browse files
committed
implementing MD in test.xml
1 parent 4b8c51d commit 1183f18

File tree

1 file changed

+102
-0
lines changed

1 file changed

+102
-0
lines changed

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

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
3+
4+
<com.google.android.material.card.MaterialCardView android:id="@+id/card"
5+
android:layout_width="match_parent"
6+
android:layout_height="wrap_content"
7+
android:layout_margin="8dp"
8+
xmlns:android="http://schemas.android.com/apk/res/android"
9+
xmlns:app="http://schemas.android.com/apk/res-auto"
10+
android:clickable="true"
11+
android:focusable="true"
12+
android:checkable="true"
13+
card_view:cardCornerRadius="100dp"
14+
xmlns:card_view="http://schemas.android.com/tools">
15+
16+
<LinearLayout
17+
android:layout_width="match_parent"
18+
android:layout_height="wrap_content"
19+
android:gravity="right"
20+
android:orientation="vertical">
21+
22+
<!-- Media -->
23+
<RelativeLayout
24+
android:layout_width="match_parent"
25+
android:layout_height="126dp">
26+
27+
<ImageView
28+
android:layout_width="53dp"
29+
android:layout_height="43dp"
30+
android:layout_alignParentTop="true"
31+
android:layout_marginTop="13dp"
32+
android:contentDescription="test"
33+
android:scaleType="centerCrop"
34+
app:srcCompat="@drawable/jira" />
35+
36+
<TextView
37+
android:layout_width="62dp"
38+
android:layout_height="wrap_content"
39+
android:layout_alignParentStart="true"
40+
android:layout_alignParentLeft="true"
41+
android:layout_alignParentBottom="true"
42+
android:layout_marginStart="93dp"
43+
android:layout_marginLeft="93dp"
44+
android:layout_marginBottom="92dp"
45+
android:text="TS-11"
46+
android:textAppearance="?attr/textAppearanceHeadline6" />
47+
48+
<TextView
49+
android:layout_width="210dp"
50+
android:layout_height="46dp"
51+
android:layout_alignParentStart="true"
52+
android:layout_alignParentLeft="true"
53+
android:layout_alignParentBottom="true"
54+
android:layout_marginStart="73dp"
55+
android:layout_marginLeft="73dp"
56+
android:layout_marginTop="8dp"
57+
android:layout_marginBottom="42dp"
58+
android:text="Investigate how blue tooth works on Android"
59+
android:textAppearance="?attr/textAppearanceBody2"
60+
android:textColor="?android:attr/textColorSecondary"
61+
android:textSize="18sp" />
62+
63+
<ImageView
64+
android:id="@+id/imageView"
65+
android:layout_width="28dp"
66+
android:layout_height="26dp"
67+
android:layout_alignParentStart="true"
68+
android:layout_alignParentLeft="true"
69+
android:layout_alignParentBottom="true"
70+
android:layout_marginStart="64dp"
71+
android:layout_marginLeft="64dp"
72+
android:layout_marginBottom="91dp"
73+
app:srcCompat="@drawable/epic" />
74+
75+
</RelativeLayout>
76+
77+
<!-- Buttons -->
78+
<LinearLayout
79+
android:layout_width="wrap_content"
80+
android:layout_height="wrap_content"
81+
android:layout_margin="8dp"
82+
android:gravity="right"
83+
android:orientation="horizontal">
84+
85+
<com.google.android.material.button.MaterialButton
86+
style="?attr/borderlessButtonStyle"
87+
android:layout_width="wrap_content"
88+
android:layout_height="wrap_content"
89+
android:layout_marginEnd="8dp"
90+
android:layout_marginRight="8dp"
91+
android:text="test" />
92+
93+
<com.google.android.material.button.MaterialButton
94+
style="?attr/borderlessButtonStyle"
95+
android:layout_width="wrap_content"
96+
android:layout_height="wrap_content"
97+
android:text="test" />
98+
</LinearLayout>
99+
100+
</LinearLayout>
101+
102+
</com.google.android.material.card.MaterialCardView>

0 commit comments

Comments
 (0)