-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added lottie and a json loading file
- Loading branch information
Showing
2 changed files
with
190 additions
and
6 deletions.
There are no files selected for viewing
179 changes: 179 additions & 0 deletions
179
sampleApp/src/androidTest/java/com/zeyad/usecases/app/assets/loading.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,179 @@ | ||
{ | ||
"assets": [], | ||
"layers": [ | ||
{ | ||
"ddd": 0, | ||
"ind": 0, | ||
"ty": 4, | ||
"nm": "Shape Layer 1", | ||
"ks": { | ||
"o": { | ||
"k": 100 | ||
}, | ||
"r": { | ||
"k": 0 | ||
}, | ||
"p": { | ||
"k": [ | ||
300, | ||
300, | ||
0 | ||
] | ||
}, | ||
"a": { | ||
"k": [ | ||
0, | ||
0, | ||
0 | ||
] | ||
}, | ||
"s": { | ||
"k": [ | ||
244, | ||
244, | ||
100 | ||
] | ||
} | ||
}, | ||
"ao": 0, | ||
"shapes": [ | ||
{ | ||
"d": 1, | ||
"ty": "el", | ||
"s": { | ||
"k": [ | ||
100, | ||
100 | ||
] | ||
}, | ||
"p": { | ||
"k": [ | ||
0, | ||
0 | ||
] | ||
}, | ||
"nm": "Ellipse Path 1", | ||
"mn": "ADBE Vector Shape - Ellipse" | ||
}, | ||
{ | ||
"ty": "tm", | ||
"s": { | ||
"k": [ | ||
{ | ||
"i": { | ||
"x": [ | ||
0.439 | ||
], | ||
"y": [ | ||
1.016 | ||
] | ||
}, | ||
"o": { | ||
"x": [ | ||
0.561 | ||
], | ||
"y": [ | ||
0.015 | ||
] | ||
}, | ||
"n": [ | ||
"0p439_1p016_0p561_0p015" | ||
], | ||
"t": 5, | ||
"s": [ | ||
100 | ||
], | ||
"e": [ | ||
0 | ||
] | ||
}, | ||
{ | ||
"t": 33.0000013441176 | ||
} | ||
], | ||
"ix": 1 | ||
}, | ||
"e": { | ||
"k": [ | ||
{ | ||
"i": { | ||
"x": [ | ||
0.439 | ||
], | ||
"y": [ | ||
1.017 | ||
] | ||
}, | ||
"o": { | ||
"x": [ | ||
0.561 | ||
], | ||
"y": [ | ||
0.016 | ||
] | ||
}, | ||
"n": [ | ||
"0p439_1p017_0p561_0p016" | ||
], | ||
"t": 0, | ||
"s": [ | ||
100 | ||
], | ||
"e": [ | ||
0 | ||
] | ||
}, | ||
{ | ||
"t": 30.0000012219251 | ||
} | ||
], | ||
"ix": 2 | ||
}, | ||
"o": { | ||
"k": 0, | ||
"ix": 3 | ||
}, | ||
"m": 1, | ||
"ix": 2, | ||
"nm": "Trim Paths 1", | ||
"mn": "ADBE Vector Filter - Trim" | ||
}, | ||
{ | ||
"ty": "st", | ||
"fillEnabled": true, | ||
"c": { | ||
"k": [ | ||
1, | ||
1, | ||
1, | ||
1 | ||
] | ||
}, | ||
"o": { | ||
"k": 100 | ||
}, | ||
"w": { | ||
"k": 16 | ||
}, | ||
"lc": 2, | ||
"lj": 1, | ||
"ml": 4, | ||
"nm": "Stroke 1", | ||
"mn": "ADBE Vector Graphic - Stroke" | ||
} | ||
], | ||
"ip": 0, | ||
"op": 900.000036657751, | ||
"st": 0, | ||
"bm": 0, | ||
"sr": 1 | ||
} | ||
], | ||
"v": "4.5.3", | ||
"ddd": 0, | ||
"ip": 1.00000004073083, | ||
"op": 33.0000013441175, | ||
"fr": 29.9700012207031, | ||
"w": 600, | ||
"h": 600 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:id="@+id/linear_layout_loader" | ||
<LinearLayout android:id="@+id/linear_layout_loader" | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:gravity="center" | ||
android:visibility="visible"> | ||
|
||
<ProgressBar | ||
android:layout_width="@dimen/forty_eight_dp" | ||
android:layout_height="@dimen/forty_eight_dp" | ||
android:indeterminate="true" /> | ||
<com.airbnb.lottie.LottieAnimationView | ||
android:id="@+id/animation_view" | ||
android:layout_width="@dimen/iv_cover_height" | ||
android:layout_height="@dimen/iv_cover_height" | ||
app:lottie_autoPlay="true" | ||
app:lottie_colorFilter="@color/colorAccent" | ||
app:lottie_fileName="loading.json" | ||
app:lottie_loop="true" /> | ||
</LinearLayout> |