mirror of
https://github.com/imcarlost/Friendlists.git
synced 2026-04-10 02:46:54 -04:00
implement favorite button
This commit is contained in:
33
base/src/main/res/layout/empty_overlay.xml
Normal file
33
base/src/main/res/layout/empty_overlay.xml
Normal file
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:background="@color/soft_background">
|
||||
|
||||
<com.airbnb.lottie.LottieAnimationView
|
||||
android:id="@+id/empty_overlay_animation_view"
|
||||
android:layout_width="200dp"
|
||||
android:layout_height="200dp"
|
||||
android:scaleType="centerCrop"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintVertical_bias="0.39"
|
||||
app:lottie_autoPlay="true"
|
||||
app:lottie_loop="true"
|
||||
app:lottie_rawRes="@raw/empty_animation" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/empty_overlay_label"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:text="No tienes favoritos!"
|
||||
android:textSize="24sp"
|
||||
app:layout_constraintEnd_toEndOf="@+id/empty_overlay_animation_view"
|
||||
app:layout_constraintStart_toStartOf="@+id/empty_overlay_animation_view"
|
||||
app:layout_constraintTop_toBottomOf="@+id/empty_overlay_animation_view" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -6,7 +6,7 @@
|
||||
android:background="@color/soft_background">
|
||||
|
||||
<com.airbnb.lottie.LottieAnimationView
|
||||
android:id="@+id/loading_overlay_animation_view"
|
||||
android:id="@+id/network_error_overlay_animation_view"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:scaleType="centerInside"
|
||||
@@ -20,14 +20,14 @@
|
||||
app:lottie_rawRes="@raw/network_animation" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView"
|
||||
android:id="@+id/network_error_overlay_label"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:text="Network error!"
|
||||
android:textSize="24sp"
|
||||
app:layout_constraintEnd_toEndOf="@+id/loading_overlay_animation_view"
|
||||
app:layout_constraintStart_toStartOf="@+id/loading_overlay_animation_view"
|
||||
app:layout_constraintTop_toBottomOf="@+id/loading_overlay_animation_view" />
|
||||
app:layout_constraintEnd_toEndOf="@+id/network_error_overlay_animation_view"
|
||||
app:layout_constraintStart_toStartOf="@+id/network_error_overlay_animation_view"
|
||||
app:layout_constraintTop_toBottomOf="@+id/network_error_overlay_animation_view" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
1
base/src/main/res/raw/empty_animation.json
Normal file
1
base/src/main/res/raw/empty_animation.json
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user