UI---缺少进度条渐变过程阴影(毛玻璃效果)
This commit is contained in:
@@ -2,6 +2,7 @@ package com.mogo.eagle.core.function.hmi.ui.widget
|
||||
|
||||
import android.animation.ValueAnimator
|
||||
import android.content.Context
|
||||
import android.content.res.Resources
|
||||
import android.content.res.TypedArray
|
||||
import android.graphics.*
|
||||
import android.util.AttributeSet
|
||||
@@ -87,8 +88,6 @@ class CircularProgressView @JvmOverloads constructor(
|
||||
|
||||
Log.d(TAG, mRectL.toString() + "," + mRectT.toString())
|
||||
Log.d(TAG, mRectF.toString() + "," + "width:" + measuredWidth.toString() + "," + "PaddingLeft:" + getPaddingLeft().toString())
|
||||
|
||||
|
||||
}
|
||||
|
||||
override fun onDraw(canvas: Canvas?) {
|
||||
|
||||
@@ -80,7 +80,7 @@ public class SteeringWheelView extends ConstraintLayout {
|
||||
steeringCircularV.setProgress((int) (180 * 100) / 360, 1000);
|
||||
if (AppIdentityModeUtils.isTaxi(FunctionBuildConfig.appIdentityMode)){
|
||||
steeringCircularVAlpha = findViewById(R.id.steering_circular_alpha);
|
||||
steeringCircularVAlpha.setAlpha(0.3f);
|
||||
steeringCircularVAlpha.setAlpha(0.4f);
|
||||
steeringCircularVAlpha.setBackColor(R.color.hmi_light_blue_00);
|
||||
steeringCircularVAlpha.setProgColor(R.color.hmi_light_blue_alpha);
|
||||
steeringCircularVAlpha.setProgress((int) (180 * 100) / 360, 1000);
|
||||
|
||||
@@ -58,34 +58,33 @@
|
||||
app:layout_constraintLeft_toRightOf="@+id/autopilot_iv"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<!-- <!–进度值改变状态进度条–>-->
|
||||
<!-- <com.mogo.eagle.core.function.hmi.ui.widget.CircularProgressView-->
|
||||
<!-- android:id="@+id/steering_circular"-->
|
||||
<!-- android:layout_width="@dimen/dp_263"-->
|
||||
<!-- android:layout_height="@dimen/dp_263"-->
|
||||
<!-- android:layout_alignParentTop="true"-->
|
||||
<!-- android:layout_centerHorizontal="true"-->
|
||||
<!-- android:layout_marginTop="@dimen/dp_128"-->
|
||||
<!-- android:outlineAmbientShadowColor="#1EBBCFF6"-->
|
||||
<!-- app:layout_constraintLeft_toLeftOf="parent"-->
|
||||
<!-- app:layout_constraintRight_toRightOf="parent"-->
|
||||
<!-- app:layout_constraintTop_toTopOf="parent"-->
|
||||
<!-- app:progWidth="8px"-->
|
||||
<!-- app:progress="0" />-->
|
||||
|
||||
<!--进度值改变状态进度条 260 130-->
|
||||
<!--进度值改变状态进度条-->
|
||||
<com.mogo.eagle.core.function.hmi.ui.widget.CircularProgressView
|
||||
android:id="@+id/steering_circular_alpha"
|
||||
android:layout_width="@dimen/dp_276"
|
||||
android:layout_height="@dimen/dp_276"
|
||||
android:id="@+id/steering_circular"
|
||||
android:layout_width="@dimen/dp_260"
|
||||
android:layout_height="@dimen/dp_260"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="@dimen/dp_114"
|
||||
android:layout_marginTop="@dimen/dp_130"
|
||||
android:outlineAmbientShadowColor="#1EBBCFF6"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:progWidth="16px"
|
||||
app:progWidth="8px"
|
||||
app:progress="0" />
|
||||
|
||||
<!--状态条阴影-->
|
||||
<com.mogo.eagle.core.function.hmi.ui.widget.CircularProgressView
|
||||
android:id="@+id/steering_circular_alpha"
|
||||
android:layout_width="@dimen/dp_274"
|
||||
android:layout_height="@dimen/dp_274"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="@dimen/dp_122"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:progWidth="22px"
|
||||
app:progress="0" />
|
||||
|
||||
<ImageView
|
||||
|
||||
Reference in New Issue
Block a user