|
|
@@ -20,8 +20,12 @@
|
|
|
</androidx.appcompat.widget.Toolbar>
|
|
|
|
|
|
<com.airbnb.lottie.LottieAnimationView
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
+ android:id="@+id/animation_view"
|
|
|
+ android:layout_width="250dp"
|
|
|
+ android:layout_height="250dp"
|
|
|
+ android:layout_marginBottom="70dp"
|
|
|
+ android:scaleType="centerInside"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
@@ -30,14 +34,77 @@
|
|
|
app:lottie_imageAssetsFolder="virus_scan_images"
|
|
|
app:lottie_loop="true" />
|
|
|
|
|
|
- <com.airbnb.lottie.LottieAnimationView
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_progress"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
+ android:layout_marginBottom="78dp"
|
|
|
+ android:text="0%"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="30sp"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
- app:layout_constraintTop_toTopOf="parent"
|
|
|
- app:lottie_autoPlay="true"
|
|
|
- app:lottie_fileName="progress_bg.json"
|
|
|
- app:lottie_imageAssetsFolder="progress_lottie"
|
|
|
- app:lottie_loop="true" />
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/scanning"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="vertical"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/animation_view">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="@string/safety_scanning"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="13sp" />
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="6dp">
|
|
|
+
|
|
|
+ <com.airbnb.lottie.LottieAnimationView
|
|
|
+ android:id="@+id/animation_progress_bg"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="4dp"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:lottie_autoPlay="true"
|
|
|
+ app:lottie_fileName="progress_bg.json"
|
|
|
+ app:lottie_imageAssetsFolder="progress_lottie"
|
|
|
+ app:lottie_loop="true" />
|
|
|
+
|
|
|
+ <ProgressBar
|
|
|
+ android:id="@+id/scan_progress"
|
|
|
+ style="@style/Widget.AppCompat.ProgressBar.Horizontal"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="2dp"
|
|
|
+ android:layout_marginTop="1dp"
|
|
|
+ android:progressBackgroundTint="@android:color/transparent"
|
|
|
+ android:progressTint="@color/white"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@id/animation_progress_bg"
|
|
|
+ app:layout_constraintRight_toRightOf="@id/animation_progress_bg"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:layout_goneMarginTop="1dp" />
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_package"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="6dp"
|
|
|
+ android:textColor="#e0ffffff"
|
|
|
+ android:textSize="12sp"
|
|
|
+ app:layout_constraintStart_toStartOf="@id/scan_progress"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/scan_progress" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|