Merge branch 'master' of gitlab.navinfo.com:CollectVehicle/OneMapQS

 Conflicts:
	app/src/main/res/layout/activity_main.xml
This commit is contained in:
squallzhjch 2023-05-06 11:03:57 +08:00
commit 9f7bf771c2
35 changed files with 377 additions and 185 deletions

View File

@ -60,22 +60,20 @@ class EvaluationResultFragment : BaseFragment(), View.OnClickListener {
onBackPressed() onBackPressed()
} }
//返回按钮点击 //返回按钮点击
binding.evaluationBar.setNavigationOnClickListener { binding.evaluationBar.setOnClickListener() {
onBackPressed() onBackPressed()
} }
//标题栏按钮
binding.evaluationBar.setOnMenuItemClickListener { //保存事件
when (it.itemId) { binding.evaluationBarSave.setOnClickListener() {
R.id.save -> {
viewModel.saveData() viewModel.saveData()
true
} }
R.id.delete -> {
//删除事件
binding.evaluationBarDelete.setOnClickListener() {
viewModel.deleteData() viewModel.deleteData()
true
}
else -> true
}
} }

View File

@ -329,6 +329,7 @@ class EvaluationResultViewModel @Inject constructor(
} }
// realm.close() // realm.close()
mapController.markerHandle.removeQsRecordMark(liveDataQsRecordBean.value!!) mapController.markerHandle.removeQsRecordMark(liveDataQsRecordBean.value!!)
mapController.mMapView.vtmMap.updateMap(true)
liveDataFinish.postValue(true) liveDataFinish.postValue(true)
} }
} }

View File

@ -29,9 +29,11 @@ class LeftAdapter(private var itemListener: ((Int, String) -> Unit?)? = null) :
val title = data[position] val title = data[position]
bd.itemId.text = title bd.itemId.text = title
if (selectTitle == title) { if (selectTitle == title) {
bd.itemId.setBackgroundColor(holder.viewBinding.root.context.getColor(R.color.cv_gray_153)) bd.itemId.setBackgroundResource(R.drawable.drawable_bg_tittle_blue_bg_4_radius)
bd.itemId.setTextColor(holder.viewBinding.root.context.getColor(R.color.highFontColor))
} else { } else {
bd.itemId.setBackgroundColor(holder.viewBinding.root.context.getColor(R.color.white)) bd.itemId.setBackgroundResource(R.drawable.drawable_bg_white_bg_4_radius)
bd.itemId.setTextColor(holder.viewBinding.root.context.getColor(R.color.black))
} }
bd.root.setOnClickListener { bd.root.setOnClickListener {
if (selectTitle != title) { if (selectTitle != title) {

View File

@ -28,10 +28,15 @@ class MiddleAdapter(private var itemListener: ((Int, String) -> Unit?)? = null)
val bd = holder.viewBinding as TextItemSelectBinding val bd = holder.viewBinding as TextItemSelectBinding
val title = data[position] val title = data[position]
bd.itemId.text = title bd.itemId.text = title
val layoutParams: ViewGroup.LayoutParams = holder.viewBinding.itemLayout.layoutParams
layoutParams.width = 115
bd.itemLayout.layoutParams = layoutParams
if (selectTitle == title) { if (selectTitle == title) {
bd.itemId.setBackgroundColor(holder.viewBinding.root.context.getColor(R.color.cv_gray_153)) bd.itemId.setBackgroundResource(R.drawable.drawable_bg_blue_bg_4_radius)
bd.itemId.setTextColor(holder.viewBinding.root.context.getColor(R.color.white))
} else { } else {
bd.itemId.setBackgroundColor(holder.viewBinding.root.context.getColor(R.color.white)) bd.itemId.setBackgroundResource(R.drawable.drawable_bg_white_bg_4_radius)
bd.itemId.setTextColor(holder.viewBinding.root.context.getColor(R.color.black))
} }
bd.root.setOnClickListener { bd.root.setOnClickListener {
if (selectTitle != title) { if (selectTitle != title) {

View File

@ -102,7 +102,8 @@ class PhenomenonFragment :
//中间菜单 //中间菜单
binding.phenomenonMiddleRecyclerview.setHasFixedSize(true) binding.phenomenonMiddleRecyclerview.setHasFixedSize(true)
binding.phenomenonMiddleRecyclerview.layoutManager = LinearLayoutManager(requireContext()) binding.phenomenonMiddleRecyclerview.layoutManager = LinearLayoutManager(requireContext(), LinearLayoutManager.HORIZONTAL, false)
binding.phenomenonMiddleRecyclerview.adapter = middleAdapter binding.phenomenonMiddleRecyclerview.adapter = middleAdapter
//中间侧菜单查询结果监听 //中间侧菜单查询结果监听
viewModel.liveDataMiddleTypeList.observe(viewLifecycleOwner) { viewModel.liveDataMiddleTypeList.observe(viewLifecycleOwner) {

View File

@ -5,15 +5,19 @@ import android.graphics.Canvas
import android.graphics.Color import android.graphics.Color
import android.graphics.Paint import android.graphics.Paint
import android.graphics.Rect import android.graphics.Rect
import android.os.Build
import android.view.View import android.view.View
import androidx.annotation.RequiresApi
import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView import androidx.recyclerview.widget.RecyclerView
import androidx.recyclerview.widget.RecyclerView.ItemDecoration import androidx.recyclerview.widget.RecyclerView.ItemDecoration
import com.navinfo.omqs.R
/** /**
* 自定义装饰器实现分组+吸顶效果 * 自定义装饰器实现分组+吸顶效果
*/ */
@RequiresApi(Build.VERSION_CODES.M)
class RightGroupHeaderDecoration(context: Context) : ItemDecoration() { class RightGroupHeaderDecoration(context: Context) : ItemDecoration() {
//头部的高 //头部的高
private val mItemHeaderHeight: Int private val mItemHeaderHeight: Int
@ -31,7 +35,7 @@ class RightGroupHeaderDecoration(context: Context) : ItemDecoration() {
mTextPaddingLeft = dp2px(context, 6f) mTextPaddingLeft = dp2px(context, 6f)
mTextRect = Rect() mTextRect = Rect()
mItemHeaderPaint = Paint(Paint.ANTI_ALIAS_FLAG) mItemHeaderPaint = Paint(Paint.ANTI_ALIAS_FLAG)
mItemHeaderPaint.color = Color.GRAY mItemHeaderPaint.color = context.getColor(R.color.btn_bg_blue)
mTextPaint = Paint(Paint.ANTI_ALIAS_FLAG) mTextPaint = Paint(Paint.ANTI_ALIAS_FLAG)
mTextPaint.textSize = 46f mTextPaint.textSize = 46f
mTextPaint.color = Color.WHITE mTextPaint.color = Color.WHITE
@ -84,7 +88,6 @@ class RightGroupHeaderDecoration(context: Context) : ItemDecoration() {
(view.top - 1).toFloat(), right.toFloat(), (view.top - 1).toFloat(), right.toFloat(),
view.top.toFloat(), mLinePaint view.top.toFloat(), mLinePaint
) )
} }
} }
} }

View File

@ -1,6 +1,53 @@
<vector android:height="24dp" android:tint="#1717E0" <vector xmlns:android="http://schemas.android.com/apk/res/android"
android:viewportHeight="24" android:viewportWidth="24" xmlns:aapt="http://schemas.android.com/aapt"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"> android:width="24dp"
<path android:fillColor="@android:color/white" android:pathData="M12,12m-3.2,0a3.2,3.2 0,1 1,6.4 0a3.2,3.2 0,1 1,-6.4 0"/> android:height="24dp"
<path android:fillColor="@android:color/white" android:pathData="M9,2L7.17,4L4,4c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2L22,6c0,-1.1 -0.9,-2 -2,-2h-3.17L15,2L9,2zM12,17c-2.76,0 -5,-2.24 -5,-5s2.24,-5 5,-5 5,2.24 5,5 -2.24,5 -5,5z"/> android:viewportWidth="24"
android:viewportHeight="24">
<path android:pathData="M12,12m-3.2,0a3.2,3.2 0,1 1,6.4 0a3.2,3.2 0,1 1,-6.4 0">
<aapt:attr name="android:fillColor">
<gradient
android:angle="0"
android:centerX="0.5"
android:centerY="0.5"
android:endColor="#FF6D0BBD"
android:startColor="#FF445FF5"
android:type="linear"
android:useLevel="false"
/>
</aapt:attr>
</path>
<path android:pathData="M9,2L7.17,4L4,4c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2L22,6c0,-1.1 -0.9,-2 -2,-2h-3.17L15,2L9,2zM12,17c-2.76,0 -5,-2.24 -5,-5s2.24,-5 5,-5 5,2.24 5,5 -2.24,5 -5,5z">
<aapt:attr name="android:fillColor">
<gradient
android:angle="0"
android:centerX="0.5"
android:centerY="0.5"
android:endColor="#FF6D0BBD"
android:startColor="#FF445FF5"
android:type="linear"
android:useLevel="false"
/>
</aapt:attr>
</path>
</vector> </vector>

View File

@ -1,5 +1,34 @@
<vector android:height="24dp" android:tint="#1717E0" <vector xmlns:android="http://schemas.android.com/apk/res/android"
android:viewportHeight="24" android:viewportWidth="24" xmlns:aapt="http://schemas.android.com/aapt"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"> android:width="24dp"
<path android:fillColor="@android:color/white" android:pathData="M12,15c1.66,0 2.99,-1.34 2.99,-3L15,6c0,-1.66 -1.34,-3 -3,-3S9,4.34 9,6v6c0,1.66 1.34,3 3,3zM17.3,12c0,3 -2.54,5.1 -5.3,5.1S6.7,15 6.7,12L5,12c0,3.42 2.72,6.23 6,6.72L11,22h2v-3.28c3.28,-0.48 6,-3.3 6,-6.72h-1.7z"/> android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:pathData="M12,15c1.66,0 2.99,-1.34 2.99,-3L15,6c0,-1.66 -1.34,-3 -3,-3S9,4.34 9,6v6c0,1.66 1.34,3 3,3zM17.3,12c0,3 -2.54,5.1 -5.3,5.1S6.7,15 6.7,12L5,12c0,3.42 2.72,6.23 6,6.72L11,22h2v-3.28c3.28,-0.48 6,-3.3 6,-6.72h-1.7z">
<aapt:attr name="android:fillColor">
<gradient
android:angle="90"
android:centerX="0.5"
android:centerY="0.5"
android:endColor="#FF6D0BBD"
android:startColor="#00000000"
android:gradientRadius="10"
android:type="radial"
android:useLevel="false"
/>
</aapt:attr>
</path>
</vector> </vector>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 826 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" > <shape xmlns:android="http://schemas.android.com/apk/res/android" >
<solid android:color="@color/blue" /> <solid android:color="@color/btn_bg_blue" />
<corners <corners
android:bottomLeftRadius="5dp" android:bottomLeftRadius="5dp"
android:bottomRightRadius="5dp" android:bottomRightRadius="5dp"

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<solid android:color="@color/high_item_color" />
<corners
android:bottomLeftRadius="5dp"
android:bottomRightRadius="5dp"
android:topLeftRadius="5dp"
android:topRightRadius="5dp" />
<padding
android:bottom="1dp"
android:left="1dp"
android:right="1dp"
android:top="1dp"/>
</shape>

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<solid android:color="@color/white" />
<corners
android:bottomLeftRadius="5dp"
android:bottomRightRadius="5dp"
android:topLeftRadius="5dp"
android:topRightRadius="5dp" />
<padding
android:bottom="1dp"
android:left="1dp"
android:right="1dp"
android:top="1dp"/>
</shape>

Binary file not shown.

After

Width:  |  Height:  |  Size: 840 B

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<ripple
xmlns:android="http://schemas.android.com/apk/res/android"
android:color="@color/ripple_color">
<item android:drawable="@drawable/shape_btn_video_normal"/>
</ripple>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false" android:drawable="@drawable/ripple_btn_video_normal"></item>
<item android:state_checked="true" android:drawable="@drawable/ripple_btn_video_normal"/>
<item android:state_pressed="true" android:drawable="@drawable/ripple_btn_video_normal"/>
<item android:state_selected="true" android:drawable="@drawable/ripple_btn_video_normal"></item>
<item android:drawable="@drawable/ripple_btn_video_normal"/>
</selector>

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false" android:drawable="@drawable/shade_btn_gray_bg_4_radius_hd"></item>
<item android:state_checked="true" android:drawable="@drawable/drawable_bg_blue_bg_4_radius"/>
<item android:state_pressed="true" android:drawable="@drawable/drawable_bg_blue_bg_4_radius"/>
<item android:state_selected="true" android:drawable="@drawable/drawable_bg_blue_bg_4_radius"></item>
<item android:drawable="@drawable/drawable_bg_white_bg_4_radius"/>
</selector>

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners
android:bottomLeftRadius="8dp"
android:bottomRightRadius="8dp"
android:radius="20dp"
android:topLeftRadius="8dp"
android:topRightRadius="0dp" />
<gradient
android:centerX="0.5"
android:centerY="0.5"
android:endColor="#ff6d0bbd"
android:startColor="#ff445ff5"
android:type="linear" />
</shape>

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@color/colorPrimarySurface"></solid>
<stroke android:color="@color/colorSecondary"></stroke>
<corners
android:bottomLeftRadius="8dp"
android:bottomRightRadius="8dp"
android:radius="20dp"
android:topLeftRadius="8dp"
android:topRightRadius="0dp" />
</shape>

View File

@ -42,9 +42,9 @@
android:layout_height="48dp" android:layout_height="48dp"
android:layout_marginLeft="20dp" android:layout_marginLeft="20dp"
android:layout_marginTop="20dp" android:layout_marginTop="20dp"
android:background="@null"
android:onClick="@{()->mainActivity.openMenu()}" android:onClick="@{()->mainActivity.openMenu()}"
android:src="@drawable/baseline_person_24" android:src="@drawable/baseline_person_24"
android:background="@null"
app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent" />
@ -57,116 +57,41 @@
app:layout_constraintTop_toBottomOf="@id/main_activity_person_center" /> app:layout_constraintTop_toBottomOf="@id/main_activity_person_center" />
<LinearLayout <LinearLayout
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="10dp"
android:layout_marginTop="10dp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintRight_toRightOf="parent"
tools:ignore="MissingConstraints">
<LinearLayout
android:id="@+id/main_activity_menu_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone"
android:orientation="horizontal">
<ImageButton
android:id="@+id/main_activity_serach"
android:onClick="@{()->mainActivity.onClickSerach()}"
android:background="@drawable/icon_serach"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<ImageButton
android:id="@+id/main_activity_2d_3d"
android:background="@drawable/icon_2d_3d"
android:onClick="@{()->mainActivity.onClick2DOr3D()}"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<ImageButton
android:id="@+id/main_activity_camera"
android:background="@drawable/icon_page_video_a1"
android:onClick="@{()->mainActivity.openCamera()}"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<ImageButton
android:id="@+id/main_activity_trace"
android:onClick="@{()->mainActivity.onClickTrace()}"
android:background="@drawable/icon_trace"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<ImageButton
android:id="@+id/main_activity_calc_disance"
android:background="@drawable/icon_calc_disance"
android:onClick="@{()->mainActivity.onClickCalcDisance()}"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
<ImageButton
android:layout_marginTop="5dp"
android:id="@+id/main_activity_menu"
android:background="@drawable/chk_icon_menu_open_close_xml"
android:onClick="@{()->mainActivity.onClickMenu()}"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout
android:orientation="vertical"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginRight="8dp" android:layout_marginRight="8dp"
android:layout_marginBottom="108dp" android:layout_marginBottom="108dp"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintRight_toLeftOf="@+id/main_activity_right_fragment"
app:layout_constraintRight_toRightOf="parent" app:layout_constraintRight_toRightOf="parent"
tools:ignore="MissingConstraints"> tools:ignore="MissingConstraints">
<ImageButton
android:id="@+id/main_activity_select_line"
android:layout_width="48dp"
android:layout_height="48dp"
android:src="@drawable/baseline_timeline_24"
android:onClick="@{()->mainActivity.selectLineOnclick()}"
android:background="@drawable/shape_card_bg_default" />
<ImageButton <ImageButton
android:id="@+id/main_activity_voice" android:id="@+id/main_activity_voice"
android:layout_width="48dp" android:layout_width="48dp"
android:layout_height="48dp" android:layout_height="48dp"
android:src="@drawable/icon_add_voice" android:background="@null"
android:background="@null" /> android:src="@drawable/icon_add_voice" />
<ImageButton <ImageButton
android:id="@+id/main_activity_line" android:id="@+id/main_activity_line"
android:layout_width="48dp" android:layout_width="48dp"
android:layout_height="48dp" android:layout_height="48dp"
android:background="@null"
android:onClick="@{()->mainActivity.voiceOnclick()}" android:onClick="@{()->mainActivity.voiceOnclick()}"
android:src="@drawable/icon_add_data" android:src="@drawable/icon_add_data" />
android:background="@null" />
<ImageButton <ImageButton
android:id="@+id/main_activity_location" android:id="@+id/main_activity_location"
android:layout_width="48dp" android:layout_width="48dp"
android:layout_height="48dp" android:layout_height="48dp"
android:background="@null"
android:onClick="@{()->viewModel.onClickLocationButton()}" android:onClick="@{()->viewModel.onClickLocationButton()}"
android:src="@drawable/icon_location" android:src="@drawable/icon_location" />
android:background="@null" />
</LinearLayout> </LinearLayout>
<fragment <fragment
android:id="@+id/main_activity_middle_fragment" android:id="@+id/main_activity_middle_fragment"
android:name="androidx.navigation.fragment.NavHostFragment" android:name="androidx.navigation.fragment.NavHostFragment"
@ -182,15 +107,90 @@
<fragment <fragment
android:id="@id/main_activity_right_fragment" android:id="@id/main_activity_right_fragment"
android:name="androidx.navigation.fragment.NavHostFragment" android:name="androidx.navigation.fragment.NavHostFragment"
android:layout_width="0dp" android:layout_width="wrap_content"
android:layout_height="0dp" android:layout_height="match_parent"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintHorizontal_weight="2.5"
app:layout_constraintLeft_toRightOf="@id/main_activity_middle_fragment" app:layout_constraintLeft_toRightOf="@id/main_activity_middle_fragment"
app:layout_constraintRight_toRightOf="parent" app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:navGraph="@navigation/right_fragment_nav_graph" /> app:navGraph="@navigation/right_fragment_nav_graph" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
app:layout_constraintRight_toLeftOf="@+id/main_activity_right_fragment"
android:layout_marginRight="10dp"
android:orientation="horizontal"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="MissingConstraints">
<LinearLayout
android:id="@+id/main_activity_menu_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:visibility="gone">
<ImageButton
android:id="@+id/main_activity_select_line"
android:layout_width="48dp"
android:layout_height="48dp"
android:background="@drawable/shape_card_bg_default"
android:onClick="@{()->mainActivity.selectLineOnclick()}"
android:src="@drawable/baseline_timeline_24" />
<ImageButton
android:id="@+id/main_activity_serach"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/icon_serach"
android:onClick="@{()->mainActivity.onClickSerach()}" />
<ImageButton
android:id="@+id/main_activity_2d_3d"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/icon_2d_3d"
android:onClick="@{()->mainActivity.onClick2DOr3D()}" />
<ImageButton
android:id="@+id/main_activity_camera"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/icon_page_video_a1"
android:onClick="@{()->mainActivity.openCamera()}" />
<ImageButton
android:id="@+id/main_activity_trace"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/icon_trace"
android:onClick="@{()->mainActivity.onClickTrace()}" />
<ImageButton
android:id="@+id/main_activity_calc_disance"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/icon_calc_disance"
android:onClick="@{()->mainActivity.onClickCalcDisance()}" />
</LinearLayout>
<ImageButton
android:id="@+id/main_activity_menu"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:background="@drawable/chk_icon_menu_open_close_xml"
android:onClick="@{()->mainActivity.onClickMenu()}" />
</LinearLayout>
<ImageButton <ImageButton
android:id="@+id/main_activity_camera2" android:id="@+id/main_activity_camera2"
@ -198,9 +198,9 @@
android:layout_height="48dp" android:layout_height="48dp"
android:layout_marginLeft="20dp" android:layout_marginLeft="20dp"
android:layout_marginTop="20dp" android:layout_marginTop="20dp"
android:background="@null"
android:onClick="@{()->mainActivity.openCamera()}" android:onClick="@{()->mainActivity.openCamera()}"
android:src="@drawable/baseline_person_24" android:src="@drawable/baseline_person_24"
android:background="@null"
android:visibility="gone" android:visibility="gone"
app:layout_constraintRight_toRightOf="parent" app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent" />

View File

@ -1,21 +1,22 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@color/ivory" android:background="@color/white"
android:paddingLeft="10dp" android:paddingLeft="10dp"
android:paddingTop="5dp" android:paddingTop="5dp"
android:paddingRight="10dp" android:paddingRight="10dp"
android:paddingBottom="5dp" android:paddingBottom="5dp"
tools:context="com.navinfo.omqs.ui.fragment.evaluationresult.SoundListAdapter"> tools:context="com.navinfo.omqs.ui.fragment.evaluationresult.SoundListAdapter">
<LinearLayout <RelativeLayout
android:id="@+id/rl_sound_content" android:id="@+id/rl_sound_content"
android:layout_alignParentRight="true"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/bg_select_sound_xml" android:background="@drawable/selector_bg_video_button"
android:gravity="center_vertical" android:gravity="center_vertical"
android:minWidth="50dp" android:minWidth="50dp"
android:orientation="horizontal" android:orientation="horizontal"
@ -26,20 +27,22 @@
android:id="@+id/tv_time" android:id="@+id/tv_time"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="10dp" android:layout_alignParentLeft="true"
android:layout_marginRight="6dp" android:paddingLeft="10dp"
android:gravity="left|center" android:paddingRight="10dp"
android:lineSpacingExtra="2dp" android:lineSpacingExtra="2dp"
android:text="" android:text=""
android:textColor="@color/font_blue_reg" android:textColor="@color/white"
android:textSize="15sp" /> android:textSize="15sp" />
<ImageView <ImageView
android:id="@+id/iv_sound_anim" android:id="@+id/iv_sound_anim"
android:paddingLeft="10dp"
android:layout_alignParentRight="true"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/sound_anim" /> android:background="@drawable/sound_anim" />
</LinearLayout> </RelativeLayout>
</LinearLayout> </RelativeLayout>

View File

@ -15,7 +15,7 @@
</data> </data>
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent" android:layout_width="256dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@color/white" android:background="@color/white"
tools:context=".ui.fragment.evaluationresult.EvaluationResultFragment"> tools:context=".ui.fragment.evaluationresult.EvaluationResultFragment">
@ -26,14 +26,38 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="parent"> app:layout_constraintTop_toTopOf="parent">
<com.google.android.material.appbar.MaterialToolbar <RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:padding="10dp"
android:id="@+id/evaluation_bar" android:id="@+id/evaluation_bar"
style="@style/card_title_font_default" style="@style/card_title_font_default"
android:layout_width="match_parent" android:layout_width="wrap_content"
android:layout_height="?attr/actionBarSize" android:layout_height="wrap_content"
android:background="@color/white" android:layout_alignParentLeft="true"
app:menu="@menu/evaluation_bar_mean" android:text="Mark" />
app:title="Mark" />
<ImageButton
android:id="@+id/evaluation_bar_save"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_alignParentRight="true"
android:background="@drawable/icon_save" />
<ImageButton
android:id="@+id/evaluation_bar_delete"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingRight="5dp"
android:layout_centerInParent="true"
android:layout_toLeftOf="@+id/evaluation_bar_save"
android:background="@drawable/btn_delete_xml" />
</RelativeLayout>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>

View File

@ -5,7 +5,8 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:gravity="right|center_vertical" android:gravity="right|center_vertical"
android:orientation="horizontal" android:orientation="horizontal"
android:paddingLeft="30dp" android:paddingTop="@dimen/fragment_margin_top"
android:paddingLeft="@dimen/fragment_margin_left"
tools:context="com.navinfo.omqs.ui.fragment.evaluationresult.PhenomenonFragment"> tools:context="com.navinfo.omqs.ui.fragment.evaluationresult.PhenomenonFragment">
<ImageView <ImageView
@ -25,42 +26,37 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"> android:orientation="vertical">
<TextView
android:id="@+id/phenomenon_title_bg"
android:layout_width="match_parent"
android:layout_height="65dp"
android:background="@color/default_blue"
android:clickable="true"
android:focusable="true"
android:gravity="center"
android:text="问题列表"
android:textColor="@color/white"
android:textSize="20sp" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="horizontal"> android:orientation="horizontal">
<androidx.recyclerview.widget.RecyclerView <RelativeLayout
android:id="@+id/phenomenon_left_recyclerview"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2" android:layout_weight="2"
android:background="@color/white" /> android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:id="@+id/phenomenon_middle_recyclerview" android:id="@+id/phenomenon_middle_recyclerview"
android:layout_width="0dp" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@color/white" /> android:background="@color/white" />
<androidx.recyclerview.widget.RecyclerView
android:layout_below="@id/phenomenon_middle_recyclerview"
android:id="@+id/phenomenon_left_recyclerview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white" />
</RelativeLayout>
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:id="@+id/phenomenon_right_recyclerview" android:id="@+id/phenomenon_right_recyclerview"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="4" android:layout_weight="3"
android:background="@color/white" /> android:background="@color/white" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>

View File

@ -5,10 +5,12 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:gravity="right|center_vertical" android:gravity="right|center_vertical"
android:orientation="horizontal" android:orientation="horizontal"
android:paddingLeft="100dp" android:paddingTop="@dimen/fragment_margin_top"
android:paddingLeft="@dimen/fragment_margin_left"
tools:context="com.navinfo.omqs.ui.fragment.evaluationresult.ProblemLinkFragment"> tools:context="com.navinfo.omqs.ui.fragment.evaluationresult.ProblemLinkFragment">
<ImageView <ImageView
android:visibility="gone"
android:id="@+id/link_drawer" android:id="@+id/link_drawer"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -25,18 +27,6 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"> android:orientation="vertical">
<TextView
android:id="@+id/link_title_bg"
android:layout_width="match_parent"
android:layout_height="65dp"
android:background="@color/default_blue"
android:clickable="true"
android:focusable="true"
android:gravity="center"
android:text="问题列表"
android:textColor="@color/white"
android:textSize="20sp" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
@ -45,6 +35,7 @@
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:id="@+id/link_middle_recyclerview" android:id="@+id/link_middle_recyclerview"
android:layout_width="0dp" android:layout_width="0dp"
android:visibility="invisible"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="2" android:layout_weight="2"
android:background="@color/white" /> android:background="@color/white" />

View File

@ -1,11 +1,20 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/item_layout"
android:background="@color/white"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/item_id" android:id="@+id/item_id"
android:layout_width="match_parent" android:layout_width="match_parent"
android:gravity="center"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:padding="5dp" android:layout_margin="3dp"
android:padding = "3dp"
android:gravity="center"
android:textColor="@color/black" android:textColor="@color/black"
android:textSize="18sp"> android:textSize="18sp">
</TextView> </TextView>
</RelativeLayout>

View File

@ -163,7 +163,8 @@
<color name="cv_gray_153">#999999</color> <color name="cv_gray_153">#999999</color>
<color name="cvm_red">#FF3B30</color> <color name="cvm_red">#FF3B30</color>
<color name="btn_blue_solid">#108ee9</color> <color name="btn_blue_solid">#108ee9</color>
<color name="titleColor">#2631DD</color> <color name="highFontColor">#2631DD</color>
<color name="high_item_color">#FFF5F7FE</color>
<color name="contentColor">#000000</color> <color name="contentColor">#000000</color>
<!-- 一键连接对话框背景色 --> <!-- 一键连接对话框背景色 -->
<color name="bg_gray2">#d1d1d1</color> <color name="bg_gray2">#d1d1d1</color>
@ -171,5 +172,6 @@
<color name="bg_dark">#999999</color> <color name="bg_dark">#999999</color>
<color name="gray_121">#797979</color> <color name="gray_121">#797979</color>
<color name="gray_59">#595959</color> <color name="gray_59">#595959</color>
<color name="btn_bg_blue">#FF3266F1</color>
<color name="text_hint_gray" comment="输入框内默认字体颜色,输入框边框颜色">#c1c1c1</color> <color name="text_hint_gray" comment="输入框内默认字体颜色,输入框边框颜色">#c1c1c1</color>
</resources> </resources>

View File

@ -28,6 +28,8 @@
<dimen name="twenty">20dp</dimen> <dimen name="twenty">20dp</dimen>
<dimen name="twenty_two">22dp</dimen> <dimen name="twenty_two">22dp</dimen>
<dimen name="twenty_four">24dp</dimen> <dimen name="twenty_four">24dp</dimen>
<dimen name="fragment_margin_top">64dp</dimen>
<dimen name="fragment_margin_left">400dp</dimen>
<!-- 相机设置iv距离上方间距--> <!-- 相机设置iv距离上方间距-->
<dimen name="camear_dialog_iv_margin_top" comment="相机设置窗体高度">25dp</dimen> <dimen name="camear_dialog_iv_margin_top" comment="相机设置窗体高度">25dp</dimen>
<!-- 相机设置窗体高度--> <!-- 相机设置窗体高度-->

View File

@ -27,7 +27,7 @@
<style name="card_title_font_default"> <style name="card_title_font_default">
<item name="android:gravity">center_vertical</item> <item name="android:gravity">center_vertical</item>
<item name="android:textSize">@dimen/card_title_font_size</item> <item name="android:textSize">@dimen/card_title_font_size</item>
<item name="android:textColor">@color/titleColor</item> <item name="android:textColor">@color/highFontColor</item>
<item name="android:layout_width">wrap_content</item> <item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item> <item name="android:layout_height">wrap_content</item>
</style> </style>
@ -46,7 +46,7 @@
<style name="card_text_font_default"> <style name="card_text_font_default">
<item name="android:gravity">center_vertical</item> <item name="android:gravity">center_vertical</item>
<item name="android:textSize">@dimen/card_title_font_2size</item> <item name="android:textSize">@dimen/card_title_font_2size</item>
<item name="android:textColor">@color/titleColor</item> <item name="android:textColor">@color/highFontColor</item>
<item name="android:padding">10dp</item> <item name="android:padding">10dp</item>
<item name="android:drawableRight">@drawable/icon_down_arrow</item> <item name="android:drawableRight">@drawable/icon_down_arrow</item>
<item name="android:background">@drawable/fm_card_map_down_status_bg</item> <item name="android:background">@drawable/fm_card_map_down_status_bg</item>