Skip to content

Commit

Permalink
Save QnA Lottie Animtaion
Browse files Browse the repository at this point in the history
  • Loading branch information
kichan05 committed Feb 15, 2022
1 parent 7e5df72 commit a1a1fce
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions app/src/main/res/layout/activity_save_question.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,26 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
>

<com.airbnb.lottie.LottieAnimationView
android:id="@+id/lottie_saveQnA"
android:layout_width="0dp"
android:layout_height="wrap_content"

android:adjustViewBounds="true"

app:bindLottieUrl="@{`https://assets8.lottiefiles.com/packages/lf20_3ktmthuy.json`}"
app:lottie_autoPlay="true"
app:lottie_loop="true"

app:layout_constraintWidth_percent="0.8"

app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toTopOf="@id/txt_saveQnA_msg"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
/>

<TextView
android:id="@+id/txt_saveQnA_msg"
android:layout_width="wrap_content"
Expand All @@ -64,9 +84,9 @@

android:gravity="center"

android:layout_marginVertical="10dp"
android:layout_marginVertical="20dp"

app:layout_constraintTop_toTopOf="parent"
app:layout_constraintTop_toBottomOf="@+id/lottie_saveQnA"
app:layout_constraintBottom_toTopOf="@id/btn_saveQnA_gotoQnA"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
Expand All @@ -79,8 +99,6 @@

android:text="QnA 화면 가기"

android:layout_marginVertical="10dp"

app:layout_constraintTop_toBottomOf="@id/txt_saveQnA_msg"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="@id/txt_saveQnA_msg"
Expand Down

0 comments on commit a1a1fce

Please sign in to comment.