mirror of
https://github.com/imcarlost/Friendlists.git
synced 2026-04-10 02:46:54 -04:00
integrate lottie and create view for users
This commit is contained in:
9
base/src/main/res/drawable/bg_card.xml
Normal file
9
base/src/main/res/drawable/bg_card.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item>
|
||||
<shape >
|
||||
<solid android:color="@color/card_background" />
|
||||
<corners android:radius="4dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
||||
19
base/src/main/res/layout/like_button.xml
Normal file
19
base/src/main/res/layout/like_button.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merge 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="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
tools:parentTag="android.widget.FrameLayout">
|
||||
|
||||
<com.airbnb.lottie.LottieAnimationView
|
||||
android:id="@+id/like_button_animation_view"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:scaleType="centerInside"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:lottie_rawRes="@raw/like_animation" />
|
||||
|
||||
</merge>
|
||||
1
base/src/main/res/raw/like_animation.json
Normal file
1
base/src/main/res/raw/like_animation.json
Normal file
File diff suppressed because one or more lines are too long
8
base/src/main/res/values/colors.xml
Normal file
8
base/src/main/res/values/colors.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="soft_background">#EEEEEE</color>
|
||||
|
||||
<color name="transparent">#00000000</color>
|
||||
|
||||
<color name="card_background">#FFFFFF</color>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user