forked from sshadkany/Android_neumorphic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathactivity_main.xml
95 lines (83 loc) · 4.27 KB
/
activity_main.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#ECF0F3"
tools:context=".MainActivity">
<com.github.sshadkany.shapes.CircleView
android:id="@+id/btn1"
android:layout_width="200dp"
android:layout_height="200dp"
android:layout_margin="5dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:shape_circle_backgroundColor="#ECF0F3"
app:shape_circle_shadow_type="drop_shadow"/>
<com.github.sshadkany.shapes.CircleView
android:id="@+id/btn9"
android:layout_width="200dp"
android:layout_height="200dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:shape_circle_backgroundColor="#ECF0F3"
app:shape_circle_shadow_type="big_inner_shadow">
</com.github.sshadkany.shapes.CircleView>
<com.github.sshadkany.shapes.PolygonView
android:id="@+id/btn2"
android:layout_width="200dp"
android:layout_height="200dp"
android:layout_margin="5dp"
app:layout_constraintStart_toStartOf="@id/btn1"
app:layout_constraintTop_toBottomOf="@id/btn1"
app:shape_polygon_backgroundColor="#ECF0F3"
app:shape_polygon_shadow_type="drop_shadow"
app:shape_polygon_side="5">
<com.github.sshadkany.shapes.PolygonView
android:id="@+id/btn2_in"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="5dp"
app:shape_polygon_backgroundColor="#ECF0F3"
app:shape_polygon_shadow_type="small_inner_shadow"
app:shape_polygon_side="5">
</com.github.sshadkany.shapes.PolygonView>
</com.github.sshadkany.shapes.PolygonView>
<com.github.sshadkany.shapes.RoundRectView
android:id="@+id/btn3"
android:layout_width="300dp"
android:layout_height="300dp"
android:layout_margin="5dp"
app:layout_constraintStart_toStartOf="@id/btn2"
app:layout_constraintTop_toBottomOf="@id/btn2"
app:shape_roundRect_backgroundColor="#ECF0F3"
app:shape_roundRect_bottomLeftRadius="12dp"
app:shape_roundRect_bottomRightRadius="12dp"
app:shape_roundRect_shadow_type="drop_shadow"
app:shape_roundRect_topLeftRadius="12dp"
app:shape_roundRect_topRightRadius="12dp">
<com.github.sshadkany.shapes.RoundRectView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="5dp"
app:shape_roundRect_backgroundColor="#ECF0F3"
app:shape_roundRect_bottomLeftRadius="12dp"
app:shape_roundRect_bottomRightRadius="12dp"
app:shape_roundRect_shadow_type="small_inner_shadow"
app:shape_roundRect_topLeftRadius="12dp"
app:shape_roundRect_topRightRadius="12dp">
<com.github.sshadkany.shapes.RoundRectView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="15dp"
app:shape_roundRect_backgroundColor="#ECF0F3"
app:shape_roundRect_bottomLeftRadius="12dp"
app:shape_roundRect_bottomRightRadius="12dp"
app:shape_roundRect_shadow_type="drop_shadow"
app:shape_roundRect_topLeftRadius="12dp"
app:shape_roundRect_topRightRadius="12dp">
</com.github.sshadkany.shapes.RoundRectView>
</com.github.sshadkany.shapes.RoundRectView>
</com.github.sshadkany.shapes.RoundRectView>
</androidx.constraintlayout.widget.ConstraintLayout>