Skip to content

Commit d57b3db

Browse files
Create mainactivity
1 parent 7052fe7 commit d57b3db

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

Layout/mainactivity

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
2+
xmlns:tools="http://schemas.android.com/tools"
3+
android:id="@+id/rl"
4+
android:layout_width="match_parent"
5+
android:layout_height="match_parent"
6+
android:padding="16dp"
7+
tools:context=".MainActivity">
8+
9+
<TextView
10+
android:gravity="center"
11+
android:id="@+id/tv"
12+
android:layout_width="match_parent"
13+
android:layout_height="wrap_content"
14+
android:layout_alignParentTop="true"
15+
android:layout_centerHorizontal="true"
16+
android:layout_marginTop="13dp"
17+
android:fontFamily="sans-serif-condensed"
18+
android:text="TextView"
19+
android:textColor="#000"
20+
android:textSize="90dp"
21+
android:textStyle="bold" />
22+
23+
<Button
24+
android:id="@+id/btn"
25+
android:layout_width="match_parent"
26+
android:layout_height="wrap_content"
27+
android:layout_alignParentBottom="true"
28+
android:layout_alignParentStart="true"
29+
android:text="Click for random apply" />
30+
31+
<RadioGroup
32+
android:id="@+id/rg"
33+
android:layout_width="match_parent"
34+
android:layout_height="wrap_content"
35+
android:layout_alignParentBottom="true"
36+
android:layout_centerHorizontal="true"
37+
android:layout_marginBottom="81dp"
38+
android:orientation="horizontal">
39+
40+
<RadioButton
41+
android:id="@+id/rb_normal"
42+
android:layout_width="wrap_content"
43+
android:layout_height="wrap_content"
44+
android:layout_weight="1"
45+
android:checked="true"
46+
android:text="Normal" />
47+
48+
<RadioButton
49+
android:id="@+id/rb_emboss"
50+
android:layout_width="wrap_content"
51+
android:layout_height="wrap_content"
52+
android:layout_weight="1"
53+
android:text="Emboss" />
54+
55+
<RadioButton
56+
android:id="@+id/rb_deboss"
57+
android:layout_width="wrap_content"
58+
android:layout_height="wrap_content"
59+
android:layout_weight="1"
60+
android:text="Deboss" />
61+
</RadioGroup>
62+
</RelativeLayout>

0 commit comments

Comments
 (0)