Skip to content

Commit

Permalink
added lottie and a json loading file
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeyad-37 committed Aug 1, 2017
1 parent 0f4cdee commit ace2e35
Show file tree
Hide file tree
Showing 2 changed files with 190 additions and 6 deletions.
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
}
17 changes: 11 additions & 6 deletions sampleApp/src/main/res/layout/view_progress.xml
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>

0 comments on commit ace2e35

Please sign in to comment.