Skip to content

Commit 31a1bdc

Browse files
committed
Create card example layout xml
1 parent 9e43a32 commit 31a1bdc

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

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

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:layout_width="match_parent"
4+
android:layout_height="match_parent"
5+
xmlns:app="http://schemas.android.com/apk/res-auto">
6+
7+
<android.support.v7.widget.CardView
8+
android:id="@+id/card"
9+
android:layout_width="match_parent"
10+
android:layout_height="match_parent"
11+
app:cardElevation="2dp"
12+
app:cardBackgroundColor="@android:color/holo_red_dark"
13+
app:cardCornerRadius="5dp">
14+
15+
<TextView
16+
android:id="@+id/title"
17+
android:layout_width="match_parent"
18+
android:layout_height="wrap_content"
19+
android:textAlignment="center"
20+
android:textSize="50sp"
21+
android:text="Title"
22+
android:textStyle="bold"
23+
android:textColor="@android:color/white"
24+
android:layout_gravity="center"/>
25+
26+
27+
</android.support.v7.widget.CardView>
28+
29+
</RelativeLayout>

0 commit comments

Comments
 (0)