forked from sshadkany/Android_neumorphic
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathactivity_button.xml
More file actions
31 lines (28 loc) · 1.3 KB
/
activity_button.xml
File metadata and controls
31 lines (28 loc) · 1.3 KB
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
<?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="com.github.sshadkany.android_neumorphic_test_app.ActivityButton">
<com.github.sshadkany.shapes.CircleView
android:id="@+id/my_button"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_margin="5dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:shape_circle_backgroundColor="#ECF0F3"
app:shape_circle_shadow_type="drop_shadow">
<ImageView
android:id="@+id/imageView"
android:layout_width="200dp"
android:layout_height="200dp"
android:layout_gravity="center"
android:tint="#221F1F"
app:srcCompat="@drawable/abc_vector_test" />
</com.github.sshadkany.shapes.CircleView>
</androidx.constraintlayout.widget.ConstraintLayout>