[add] 添加动画相关视图控件 未添加动画
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<corners android:radius="6px" />
|
||||
|
||||
<gradient
|
||||
android:angle="180"
|
||||
android:endColor="#2B6EFF"
|
||||
android:startColor="#3DCCFF" />
|
||||
</shape>
|
||||
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:id="@android:id/background">
|
||||
<shape>
|
||||
<corners android:radius="@dimen/dp_33" />
|
||||
<solid android:color="#0B1030" />
|
||||
</shape>
|
||||
</item>
|
||||
<item android:id="@android:id/progress">
|
||||
<scale android:scaleWidth="100%">
|
||||
<shape>
|
||||
<corners android:radius="@dimen/dp_33" />
|
||||
<solid android:color="#3DCCFF" />
|
||||
<gradient
|
||||
android:angle="180"
|
||||
android:endColor="#2B6EFF"
|
||||
android:startColor="#3DCCFF" />
|
||||
</shape>
|
||||
</scale>
|
||||
</item>
|
||||
<item android:id="@android:id/secondaryProgress">
|
||||
<scale android:scaleWidth="100%">
|
||||
<shape>
|
||||
<corners android:radius="@dimen/dp_33" />
|
||||
<solid android:color="#0B1030" />
|
||||
</shape>
|
||||
</scale>
|
||||
</item>
|
||||
</layer-list>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
@@ -26,4 +26,55 @@
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/animationLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/blue_back_color">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/scan_car_image"
|
||||
android:layout_width="@dimen/check_scan_width"
|
||||
android:layout_height="@dimen/check_scan_height"
|
||||
android:layout_marginTop="@dimen/dp_400"
|
||||
android:src="@drawable/check_scan_first"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/check_progress_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_120"
|
||||
android:text="自动驾驶车辆体检中,请稍候……"
|
||||
android:textColor="@color/module_commons_wm_dialog_text_textColor"
|
||||
android:textSize="@dimen/dp_42"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/scan_car_image" />
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/check_progress"
|
||||
style="@style/check_progressBar_scale"
|
||||
android:layout_width="@dimen/dp_520"
|
||||
android:layout_height="@dimen/dp_12"
|
||||
android:layout_marginTop="@dimen/dp_57"
|
||||
android:progress="30"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/check_progress_text" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/scan_lip_image"
|
||||
android:layout_width="@dimen/dp_25"
|
||||
android:layout_height="@dimen/dp_652"
|
||||
android:src="@drawable/scan_tip_line"
|
||||
app:layout_constraintLeft_toLeftOf="@id/scan_car_image"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
android:layout_marginTop="@dimen/dp_380"/>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -11,5 +11,7 @@
|
||||
<dimen name="check_little_btn_width">32px</dimen>
|
||||
<dimen name="check_luyouqi_start">1078px</dimen>
|
||||
<dimen name="check_obu_start">1660px</dimen>
|
||||
<dimen name="check_scan_width">1162px</dimen>
|
||||
<dimen name="check_scan_height">570px</dimen>
|
||||
|
||||
</resources>
|
||||
10
modules/mogo-module-check/src/main/res/values/styles.xml
Normal file
10
modules/mogo-module-check/src/main/res/values/styles.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<style name="check_progressBar_scale" parent="@android:style/Widget.ProgressBar.Horizontal">
|
||||
<item name="android:indeterminateDrawable">
|
||||
@android:drawable/progress_indeterminate_horizontal
|
||||
</item>
|
||||
<item name="android:progressDrawable">@drawable/check_progress</item>
|
||||
</style>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user