[add] 疲劳驾驶

This commit is contained in:
liujing
2020-09-03 18:14:06 +08:00
parent 09eb2f3ab5
commit 034d66f760
8 changed files with 14 additions and 10 deletions

View File

@@ -32,6 +32,7 @@ public class RoundConstraintLayout extends ConstraintLayout implements IMogoSkin
private Path roundPath;
private RectF rectF;
public RoundConstraintLayout(Context context) {
this(context, null);
}

View File

@@ -1,7 +1,7 @@
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape>
<corners android:radius="16px" />
<corners android:radius="@dimen/module_v2x_panel_cor" />
<gradient android:angle="135"
android:endColor="#2E3141"
android:startColor="#3F435F" />

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<com.mogo.module.v2x.view.RoundConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/rlContent"
@@ -36,7 +36,7 @@
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/dp_30"
android:layout_marginBottom="@dimen/dp_20"
android:textColor="#FFFFFF"
android:textColor="@color/v2x_FFF_333"
android:textSize="@dimen/dp_34"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
@@ -51,7 +51,7 @@
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/dp_30"
android:gravity="center_vertical"
android:textColor="#FFF"
android:textColor="@color/v2x_FFF_333"
android:textSize="@dimen/dp_80"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="@+id/ivToNav"
@@ -68,4 +68,4 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</com.mogo.module.v2x.view.RoundConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<com.mogo.module.v2x.view.RoundConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
@@ -33,4 +33,4 @@
app:miv_shapeBorderWidth="@dimen/dp_4"
tools:visibility="visible" />
</com.mogo.module.v2x.view.RoundConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -53,6 +53,7 @@
<dimen name="module_v2x_surrounding_item_bottom_right_textsize">16px</dimen>
<dimen name="module_v2x_des_index_width">16px</dimen>
<dimen name="module_v2x_des_index_height">4px</dimen>
<dimen name="module_v2x_panel_cor">30px</dimen>
<dimen name="module_v2x_panel_width">120px</dimen>
</resources>

View File

@@ -56,5 +56,7 @@
<dimen name="module_v2x_des_index_width">16px</dimen>
<dimen name="module_v2x_des_index_height">20px</dimen>
<dimen name="module_v2x_panel_width">66px</dimen>
<dimen name="module_v2x_panel_cor">16px</dimen>
</resources>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@@ -4,8 +4,8 @@
<corners android:radius="@dimen/dp_40" />
<gradient
android:angle="135"
android:endColor="#F5F5F5"
android:startColor="#FFFFFF"
android:endColor="#FFFFFF"
android:startColor="#F5F5F5"
android:type="linear"
android:useLevel="true" />
</shape>