261 lines
10 KiB
XML
261 lines
10 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layout 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">
|
|
|
|
<data>
|
|
|
|
<variable
|
|
name="fragment"
|
|
type="com.navinfo.omqs.ui.fragment.evaluationresult.EvaluationResultFragment" />
|
|
|
|
<variable
|
|
name="viewModel"
|
|
type="com.navinfo.omqs.ui.fragment.evaluationresult.EvaluationResultViewModel" />
|
|
</data>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="256dp"
|
|
android:layout_height="match_parent"
|
|
android:background="@color/white"
|
|
tools:context=".ui.fragment.evaluationresult.EvaluationResultFragment">
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
android:id="@+id/evaluation_appbar_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<TextView
|
|
android:padding="10dp"
|
|
android:id="@+id/evaluation_bar"
|
|
style="@style/card_title_font_default"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentLeft="true"
|
|
android:text="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>
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
android:layout_marginTop="5dp"
|
|
android:padding="10dp"
|
|
app:layout_constraintBottom_toTopOf="@id/evaluation_camera"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/evaluation_appbar_layout">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:paddingBottom="10dp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
style="@style/card_content_font_default"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="要素分类" />
|
|
|
|
<TextView
|
|
android:id="@+id/evaluation_class_type"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
style="@style/card_text_font_default"
|
|
android:onClick="@{fragment::onClick}"
|
|
android:text="@{viewModel.liveDataQsRecordBean.classType}" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:paddingBottom="10dp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
style="@style/card_content_font_default"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="问题类型" />
|
|
|
|
<TextView
|
|
android:id="@+id/evaluation_problem_type"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
style="@style/card_text_font_default"
|
|
android:onClick="@{fragment::onClick}"
|
|
android:text="@{viewModel.liveDataQsRecordBean.problemType}" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:paddingBottom="10dp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
style="@style/card_content_font_default"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="问题现象" />
|
|
|
|
<TextView
|
|
android:id="@+id/evaluation_phenomenon"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
style="@style/card_text_font_default"
|
|
android:onClick="@{fragment::onClick}"
|
|
android:text="@{viewModel.liveDataQsRecordBean.phenomenon}" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:paddingBottom="10dp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
style="@style/card_content_font_default"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="问题环节" />
|
|
|
|
<TextView
|
|
android:id="@+id/evaluation_link"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
style="@style/card_text_font_default"
|
|
android:onClick="@{fragment::onClick}"
|
|
android:text="@{viewModel.liveDataQsRecordBean.problemLink}" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:paddingBottom="10dp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
style="@style/card_content_font_default"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="问题原因" />
|
|
|
|
<TextView
|
|
android:id="@+id/evaluation_cause"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
style="@style/card_text_font_default"
|
|
android:onClick="@{fragment::onClick}"
|
|
android:text="@{viewModel.liveDataQsRecordBean.cause}" />
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:paddingBottom="10dp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
style="@style/card_content_font_default"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="问题描述" />
|
|
|
|
<com.navinfo.omqs.ui.widget.MyEditeText
|
|
style="@style/card_text_font_default"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="start"
|
|
android:hint="请输入备注信息"
|
|
android:inputType="textMultiLine"
|
|
android:lines="3"
|
|
android:maxLines="3"
|
|
android:text="@={viewModel.liveDataQsRecordBean.description}" />
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_margin="5dp"
|
|
android:background="@color/gray_121" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
style="@style/card_title_font_default"
|
|
android:text="多媒体" />
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/evaluation_voice_recyclerview"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="120dp" />
|
|
|
|
</LinearLayout>
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
<ImageButton
|
|
android:id="@+id/evaluation_camera"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:padding="10dp"
|
|
android:background="@drawable/btn_bg_default"
|
|
android:src="@drawable/baseline_camera_alt_24"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintHorizontal_weight="1"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintRight_toLeftOf="@id/evaluation_voice" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/evaluation_voice"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:padding="10dp"
|
|
android:src="@drawable/baseline_keyboard_voice_24"
|
|
android:background="@drawable/btn_bg_default"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintHorizontal_weight="1"
|
|
app:layout_constraintLeft_toRightOf="@id/evaluation_camera"
|
|
app:layout_constraintRight_toRightOf="parent" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</layout> |