Skip to content

Commit

Permalink
#52: Added Lottie Animation for No Data
Browse files Browse the repository at this point in the history
  • Loading branch information
Entreco committed Dec 22, 2018
1 parent 88e214d commit b5aec08
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,6 @@
<!-- Empty Stats -->
<include
layout="@layout/include_profile_empty"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="@dimen/large"
android:visibility="@{viewModel.isNotEmpty ? View.GONE : View.VISIBLE}"
tools:visibility="gone" />

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:context=".profile.view.ProfileActivity">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingBottom="@dimen/xxlarge"
android:paddingTop="@dimen/xxlarge"
android:paddingBottom="@dimen/xxlarge"
tools:showIn="@layout/include_profile_stats">

<TextView
Expand All @@ -24,12 +24,12 @@
<com.airbnb.lottie.LottieAnimationView
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:lottie_colorFilter="?attr/colorAccent"
android:layout_margin="@dimen/large"
android:scaleType="fitCenter"
app:lottie_rawRes="@raw/doh"
app:lottie_loop="true"
app:lottie_autoPlay="true"
/>
app:lottie_colorFilter="?attr/colorAccent"
app:lottie_loop="true"
app:lottie_rawRes="@raw/doh" />

<TextView
android:layout_width="match_parent"
Expand Down

0 comments on commit b5aec08

Please sign in to comment.