[6.5.0]
[fea] [乘客屏 全局概览 修改]
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
package com.mogo.och.common.module.wigets.map.overmapview
|
||||
|
||||
import android.content.Context
|
||||
import android.graphics.Color
|
||||
import android.graphics.drawable.GradientDrawable
|
||||
import android.util.AttributeSet
|
||||
import android.view.LayoutInflater
|
||||
import androidx.constraintlayout.widget.ConstraintLayout
|
||||
import com.mogo.och.common.module.R
|
||||
|
||||
class OverMapBottomView @JvmOverloads constructor(
|
||||
context: Context,
|
||||
attrs: AttributeSet? = null,
|
||||
defStyleAttr: Int = 0
|
||||
) : ConstraintLayout(context, attrs, defStyleAttr){
|
||||
|
||||
|
||||
private fun initView() {
|
||||
LayoutInflater.from(context).inflate(R.layout.common_overmap_bottom, this, true)
|
||||
// 定义渐变的方向
|
||||
// 定义渐变的方向
|
||||
val orientation = GradientDrawable.Orientation.LEFT_RIGHT
|
||||
val temp01 = GradientDrawable(orientation, intArrayOf(
|
||||
Color.parseColor("#33D7E5FF"),
|
||||
Color.parseColor("#E6EFFF"),
|
||||
Color.parseColor("#E6EFFF"),
|
||||
Color.parseColor("#E6EFFF"),
|
||||
Color.parseColor("#33D7E5FF"),
|
||||
))
|
||||
background = temp01
|
||||
}
|
||||
|
||||
init {
|
||||
try {
|
||||
initView()
|
||||
} catch (e: Exception) {
|
||||
e.printStackTrace()
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
112
OCH/common/common/src/main/res/layout/common_overmap_bottom.xml
Normal file
112
OCH/common/common/src/main/res/layout/common_overmap_bottom.xml
Normal file
@@ -0,0 +1,112 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merge 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="@dimen/dp_1860"
|
||||
android:layout_height="@dimen/dp_136"
|
||||
tools:parentTag="androidx.constraintlayout.widget.ConstraintLayout">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/aciv_quanxiluk"
|
||||
android:layout_width="@dimen/dp_53"
|
||||
android:layout_height="@dimen/dp_53"
|
||||
android:src="@drawable/mogo_quanxi_lukou"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@+id/aciv_quanxiluk_value"
|
||||
app:layout_constraintHorizontal_chainStyle="packed"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
/>
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/aciv_quanxiluk_value"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp_19"
|
||||
android:layout_marginEnd="@dimen/dp_40"
|
||||
android:text="全息路口"
|
||||
android:textColor="#0D0D0D"
|
||||
app:layout_constraintTop_toTopOf="@+id/aciv_quanxiluk"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/aciv_quanxiluk"
|
||||
app:layout_constraintEnd_toStartOf="@+id/aciv_jingzhi"
|
||||
app:layout_constraintStart_toEndOf="@+id/aciv_quanxiluk"
|
||||
/>
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/aciv_jingzhi"
|
||||
android:layout_width="@dimen/dp_53"
|
||||
android:layout_height="@dimen/dp_53"
|
||||
android:layout_marginStart="@dimen/dp_40"
|
||||
android:src="@drawable/mogo_jingzhi_nor"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/aciv_quanxiluk_value"
|
||||
app:layout_constraintEnd_toStartOf="@+id/aciv_jingzhi_value"
|
||||
/>
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/aciv_jingzhi_value"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp_19"
|
||||
android:text="全息路口"
|
||||
android:textColor="#0D0D0D"
|
||||
android:layout_marginEnd="@dimen/dp_40"
|
||||
app:layout_constraintTop_toTopOf="@+id/aciv_quanxiluk"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/aciv_quanxiluk"
|
||||
app:layout_constraintStart_toEndOf="@+id/aciv_jingzhi"
|
||||
app:layout_constraintEnd_toStartOf="@+id/aciv_shigong"
|
||||
/>
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/aciv_shigong"
|
||||
android:layout_width="@dimen/dp_53"
|
||||
android:layout_height="@dimen/dp_53"
|
||||
android:src="@drawable/mogo_shigong_image"
|
||||
android:layout_marginStart="@dimen/dp_40"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/aciv_jingzhi_value"
|
||||
app:layout_constraintEnd_toStartOf="@+id/aciv_shigong_value"
|
||||
/>
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/aciv_shigong_value"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp_19"
|
||||
android:text="全息路口"
|
||||
android:textColor="#0D0D0D"
|
||||
android:layout_marginEnd="@dimen/dp_40"
|
||||
app:layout_constraintTop_toTopOf="@+id/aciv_shigong"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/aciv_shigong"
|
||||
app:layout_constraintStart_toEndOf="@+id/aciv_shigong"
|
||||
app:layout_constraintEnd_toStartOf="@+id/aciv_shigu"
|
||||
/>
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/aciv_shigu"
|
||||
android:layout_width="@dimen/dp_53"
|
||||
android:layout_height="@dimen/dp_53"
|
||||
android:src="@drawable/mogo_shigu_nor"
|
||||
android:layout_marginStart="@dimen/dp_40"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/aciv_shigong_value"
|
||||
app:layout_constraintEnd_toStartOf="@+id/aciv_shigu_value"
|
||||
/>
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/aciv_shigu_value"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp_19"
|
||||
android:text="全息路口"
|
||||
android:textColor="#0D0D0D"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@+id/aciv_shigu"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/aciv_shigu"
|
||||
app:layout_constraintStart_toEndOf="@+id/aciv_shigu"
|
||||
/>
|
||||
|
||||
</merge>
|
||||
Reference in New Issue
Block a user