[m2]
[3.0.0] [圆角修改]
This commit is contained in:
@@ -86,7 +86,7 @@ class PM2DrivingInfoFragment :
|
||||
super.initViews(savedInstanceState)
|
||||
overMapView?.let {
|
||||
it.onCreateView(savedInstanceState)
|
||||
val radius = AutoSizeUtils.dp2px(requireContext(), 38f)
|
||||
val radius = AutoSizeUtils.dp2px(requireContext(), 16f)
|
||||
it.outlineProvider = TextureVideoViewOutlineProvider(radius.toFloat())
|
||||
it.clipToOutline = true
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<corners android:bottomLeftRadius="@dimen/dp_38"
|
||||
android:topLeftRadius="@dimen/dp_38"/>
|
||||
<corners android:bottomLeftRadius="@dimen/dp_16"
|
||||
android:topLeftRadius="@dimen/dp_16"/>
|
||||
<gradient android:startColor="@android:color/white"
|
||||
android:endColor="@color/shuttle_color_c8efff"
|
||||
android:angle="315"
|
||||
|
||||
@@ -43,9 +43,9 @@
|
||||
android:layout_marginTop="@dimen/dp_61"
|
||||
android:layout_marginStart="@dimen/dp_20"
|
||||
android:layout_marginEnd="@dimen/dp_20"
|
||||
app:blurRadius="@dimen/dp_20"
|
||||
app:blurRadius="@dimen/dp_15"
|
||||
app:shadowColor="#80000000"
|
||||
app:shadowRadius="@dimen/dp_38"
|
||||
app:shadowRadius="@dimen/dp_16"
|
||||
app:shadow_position="outer"
|
||||
app:xOffset="0dp"
|
||||
app:yOffset="0dp"/>
|
||||
@@ -54,11 +54,9 @@
|
||||
<FrameLayout
|
||||
android:id="@+id/driving_fragment"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_marginTop="@dimen/dp_20"
|
||||
android:layout_marginStart="@dimen/dp_40"
|
||||
android:layout_marginEnd="@dimen/dp_40"
|
||||
android:layout_marginBottom="@dimen/dp_20"
|
||||
android:layout_height="@dimen/dp_480"
|
||||
android:layout_marginStart="@dimen/dp_35"
|
||||
android:layout_marginEnd="@dimen/dp_35"
|
||||
android:layout_height="@dimen/dp_490"
|
||||
app:layout_constraintTop_toTopOf="@+id/och_shadow_layout"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/och_shadow_layout"
|
||||
app:layout_constraintEnd_toEndOf="@+id/och_shadow_layout"
|
||||
|
||||
Reference in New Issue
Block a user