<?xml version="1.0" encoding="utf-8"?>
|
<android.support.constraint.ConstraintLayout
|
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="match_parent"
|
android:layout_height="match_parent"
|
tools:context="cn.flightfeather.thirdappmodule.activity.ProblemDetailActivity">
|
<ScrollView
|
android:id="@+id/sl_content"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintBottom_toTopOf="@id/cl_submit">
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:paddingLeft="15dp"
|
android:paddingRight="15dp"
|
android:paddingBottom="15dp"
|
android:orientation="vertical">
|
<TextView
|
android:id="@+id/textView"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp"
|
android:text="问题名称"
|
android:textColor="@color/colorPrimary" />
|
|
<TextView
|
android:id="@+id/tv_problem_name"
|
android:layout_marginTop="10dp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:textColor="@color/primary_text"
|
android:textSize="16dp"
|
android:text="扬尘在线监测设备安装位置符合规范并纳入系统"/>
|
<TextView
|
android:layout_marginTop="10dp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="问题位置"
|
android:textColor="@color/colorPrimary"/>
|
<TextView
|
android:id="@+id/tv_problem_location"
|
android:layout_marginTop="10dp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:textColor="@color/primary_text"
|
android:textSize="16dp"
|
android:text="工地北出口"/>
|
<com.amap.api.maps.TextureMapView
|
android:layout_marginTop="8dp"
|
android:id="@+id/tmv_main"
|
android:layout_width="match_parent"
|
android:layout_height="160dp">
|
</com.amap.api.maps.TextureMapView>
|
<TextView
|
android:layout_marginTop="10dp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="问题时间"
|
android:textColor="@color/colorPrimary"/>
|
<TextView
|
android:id="@+id/tv_problem_time"
|
android:layout_marginTop="10dp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:textColor="@color/primary_text"
|
android:textSize="16dp"
|
android:text="2017年10月19日 12:00"/>
|
|
<TextView
|
android:layout_marginTop="10dp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="问题照片"
|
android:textColor="@color/colorPrimary"/>
|
<LinearLayout
|
android:layout_marginTop="10dp"
|
android:layout_marginBottom="10dp"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
<ImageView
|
android:id="@+id/iv_problem_photo1"
|
android:layout_width="80dp"
|
android:layout_height="80dp"
|
android:scaleType="centerCrop"
|
android:src="@drawable/icon_add_photo_blank"/>
|
<ImageView
|
android:id="@+id/iv_problem_photo2"
|
android:layout_marginLeft="12dp"
|
android:layout_width="80dp"
|
android:layout_height="80dp"
|
android:scaleType="centerCrop"
|
android:src="@drawable/icon_add_photo_blank"/>
|
|
<ImageView
|
android:id="@+id/iv_problem_photo3"
|
android:layout_width="80dp"
|
android:layout_height="80dp"
|
android:layout_marginLeft="12dp"
|
android:scaleType="centerCrop"
|
android:src="@drawable/icon_add_photo_blank" />
|
<LinearLayout
|
android:id="@+id/ll_share_all_problem"
|
android:layout_width="0dp"
|
android:layout_weight="1"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center_vertical"
|
android:gravity="center"
|
android:layout_marginLeft="6dp"
|
android:layout_marginRight="6dp"
|
android:clickable="true"
|
android:background="?android:attr/selectableItemBackground"
|
android:orientation="vertical">
|
|
<ImageView
|
android:layout_width="30dp"
|
android:layout_height="30dp"
|
android:src="@drawable/icon_share_blue" />
|
<TextView
|
android:textSize="12dp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="全部分享"/>
|
</LinearLayout>
|
|
</LinearLayout>
|
<TextView
|
android:layout_marginTop="6dp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="现场整改"
|
android:textColor="@color/colorPrimary"/>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp"
|
android:orientation="horizontal">
|
<TextView
|
android:id="@+id/tv_problem_change"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:textColor="@color/primary_text"
|
android:textSize="16dp"
|
android:text="未整改"/>
|
<Switch
|
android:id="@+id/sw_change"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content" />
|
</LinearLayout>
|
<LinearLayout
|
android:id="@+id/ll_change_advise_read"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical">
|
<TextView
|
android:layout_marginTop="10dp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="整改建议"
|
android:textColor="@color/colorPrimary"/>
|
<TextView
|
android:id="@+id/tv_change_advise_read"
|
android:layout_weight="1"
|
android:layout_marginTop="10dp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:textColor="@color/primary_text"
|
android:textSize="16dp"
|
android:text="这里是整改建议"/>
|
</LinearLayout>
|
<LinearLayout
|
android:id="@+id/ll_change"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical">
|
<TextView
|
android:layout_marginTop="10dp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="整改类别"
|
android:textColor="@color/colorPrimary"/>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
<TextView
|
android:id="@+id/tv_change_type"
|
android:layout_weight="1"
|
android:layout_marginTop="10dp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:textColor="@color/primary_text"
|
android:textSize="16dp"
|
android:text="现场整改"/>
|
|
<TextView
|
android:id="@+id/tv_edit_change_type"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp"
|
android:paddingRight="6dp"
|
android:text="修改"
|
android:textColor="@color/colorPrimary"
|
android:textSize="16dp" />
|
</LinearLayout>
|
|
<TextView
|
android:layout_marginTop="10dp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="整改效果"
|
android:textColor="@color/colorPrimary"/>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
<TextView
|
android:id="@+id/tv_change_result"
|
android:layout_weight="1"
|
android:layout_marginTop="10dp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:textColor="@color/primary_text"
|
android:textSize="16dp"
|
android:text="这里是整改效果"/>
|
<TextView
|
android:id="@+id/tv_edit_change_result"
|
android:layout_marginTop="10dp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:textColor="@color/colorPrimary"
|
android:textSize="16dp"
|
android:paddingRight="6dp"
|
android:text="修改"/>
|
</LinearLayout>
|
<TextView
|
android:layout_marginTop="10dp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="整改建议"
|
android:textColor="@color/colorPrimary"/>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
<TextView
|
android:id="@+id/tv_change_advise"
|
android:layout_weight="1"
|
android:layout_marginTop="10dp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:textColor="@color/primary_text"
|
android:textSize="16dp"
|
android:text="这里是整改建议"/>
|
<TextView
|
android:id="@+id/tv_edit_change_advise"
|
android:layout_marginTop="10dp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:textColor="@color/colorPrimary"
|
android:textSize="16dp"
|
android:paddingRight="6dp"
|
android:text="修改"/>
|
</LinearLayout>
|
|
<TextView
|
android:layout_marginTop="10dp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="整改照片"
|
android:textColor="@color/colorPrimary"/>
|
<LinearLayout
|
android:layout_marginTop="10dp"
|
android:layout_marginBottom="14dp"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
<ImageView
|
android:id="@+id/iv_problem_change_photo1"
|
android:layout_width="80dp"
|
android:layout_height="80dp"
|
android:scaleType="centerCrop"
|
android:src="@drawable/icon_add_photo_blank"/>
|
<ImageView
|
android:id="@+id/iv_problem_change_photo2"
|
android:layout_marginLeft="12dp"
|
android:layout_width="80dp"
|
android:layout_height="80dp"
|
android:scaleType="centerCrop"
|
android:src="@drawable/icon_add_photo_blank"/>
|
|
<ImageView
|
android:id="@+id/iv_problem_change_photo3"
|
android:layout_width="80dp"
|
android:layout_height="80dp"
|
android:layout_marginLeft="12dp"
|
android:scaleType="centerCrop"
|
android:src="@drawable/icon_add_photo_blank" />
|
<LinearLayout
|
android:id="@+id/ll_share_all_change"
|
android:layout_width="0dp"
|
android:layout_weight="1"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center_vertical"
|
android:gravity="center"
|
android:clickable="true"
|
android:background="?android:attr/selectableItemBackground"
|
android:layout_marginLeft="6dp"
|
android:layout_marginRight="6dp"
|
android:orientation="vertical">
|
|
<ImageView
|
android:layout_width="30dp"
|
android:layout_height="30dp"
|
android:src="@drawable/icon_share_blue" />
|
<TextView
|
android:textSize="12dp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="全部分享"/>
|
</LinearLayout>
|
</LinearLayout>
|
</LinearLayout>
|
|
<TextView
|
android:layout_marginTop="6dp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="问题复核"
|
android:textColor="@color/colorPrimary"/>
|
<LinearLayout
|
android:layout_marginTop="10dp"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
<TextView
|
android:id="@+id/tv_problem_recheck"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:textColor="@color/primary_text"
|
android:textSize="16dp"
|
android:text="未复核"/>
|
<Switch
|
android:id="@+id/sw_recheck"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content" />
|
</LinearLayout>
|
<LinearLayout
|
android:id="@+id/ll_recheck"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:orientation="vertical">
|
<TextView
|
android:layout_marginTop="10dp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="复核结论"
|
android:textColor="@color/colorPrimary"/>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
<TextView
|
android:id="@+id/tv_recheck_result"
|
android:layout_weight="1"
|
android:layout_marginTop="10dp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:textColor="@color/primary_text"
|
android:textSize="16dp"
|
android:text="这里是复核结果"/>
|
<TextView
|
android:id="@+id/tv_edit_recheck_result"
|
android:layout_marginTop="10dp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:textColor="@color/colorPrimary"
|
android:textSize="16dp"
|
android:paddingRight="6dp"
|
android:text="修改"/>
|
</LinearLayout>
|
<TextView
|
android:layout_marginTop="10dp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="复核描述"
|
android:textColor="@color/colorPrimary"/>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
<TextView
|
android:id="@+id/tv_recheck_des"
|
android:layout_weight="1"
|
android:layout_marginTop="10dp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:textColor="@color/primary_text"
|
android:textSize="16dp"
|
android:text="这里是复核描述"/>
|
<TextView
|
android:id="@+id/tv_edit_recheck_des"
|
android:layout_marginTop="10dp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:textColor="@color/colorPrimary"
|
android:textSize="16dp"
|
android:paddingRight="6dp"
|
android:text="修改"/>
|
</LinearLayout>
|
<TextView
|
android:layout_marginTop="10dp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="复核照片"
|
android:textColor="@color/colorPrimary"/>
|
<LinearLayout
|
android:layout_marginTop="10dp"
|
android:layout_marginBottom="14dp"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
<ImageView
|
android:id="@+id/iv_recheck_photo1"
|
android:layout_width="80dp"
|
android:layout_height="80dp"
|
android:scaleType="centerCrop"
|
android:src="@drawable/icon_add_photo_blank"/>
|
<ImageView
|
android:id="@+id/iv_recheck_photo2"
|
android:layout_marginLeft="12dp"
|
android:layout_width="80dp"
|
android:layout_height="80dp"
|
android:scaleType="centerCrop"
|
android:src="@drawable/icon_add_photo_blank"/>
|
|
<ImageView
|
android:id="@+id/iv_recheck_photo3"
|
android:layout_width="80dp"
|
android:layout_height="80dp"
|
android:layout_marginLeft="12dp"
|
android:scaleType="centerCrop"
|
android:src="@drawable/icon_add_photo_blank" />
|
<LinearLayout
|
android:id="@+id/ll_share_all_recheck"
|
android:layout_width="0dp"
|
android:layout_weight="1"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center_vertical"
|
android:gravity="center"
|
android:clickable="true"
|
android:background="?android:attr/selectableItemBackground"
|
android:layout_marginLeft="6dp"
|
android:layout_marginRight="6dp"
|
android:orientation="vertical">
|
|
<ImageView
|
android:layout_width="30dp"
|
android:layout_height="30dp"
|
android:src="@drawable/icon_share_blue" />
|
<TextView
|
android:textSize="12dp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="全部分享"/>
|
</LinearLayout>
|
</LinearLayout>
|
</LinearLayout>
|
<Button
|
android:id="@+id/btn_test"
|
android:text="test"
|
android:visibility="gone"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content" />
|
</LinearLayout>
|
</ScrollView>
|
|
<android.support.constraint.ConstraintLayout
|
android:id="@+id/cl_submit"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
app:layout_constraintBottom_toBottomOf="parent"
|
android:background="@android:color/white"
|
android:elevation="@dimen/dimen4"
|
tools:ignore="UnusedAttribute">
|
|
<Button
|
android:id="@+id/btn_fail"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintEnd_toStartOf="@id/btn_pass"
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
android:layout_margin="@dimen/dimen8"
|
android:background="@drawable/shape_button_blue"
|
android:backgroundTint="@color/red_btn_bg_color"
|
android:foreground="?android:attr/selectableItemBackground"
|
android:text="未通过"
|
android:textColor="@color/white"
|
android:textSize="@dimen/textSize_16"
|
android:textStyle="bold">
|
</Button>
|
|
<Button
|
android:id="@+id/btn_pass"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
app:layout_constraintStart_toEndOf="@id/btn_fail"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
android:layout_margin="@dimen/dimen8"
|
android:background="@drawable/shape_button_blue"
|
android:backgroundTint="@color/lightBlue"
|
android:foreground="?android:attr/selectableItemBackground"
|
android:text="通过"
|
android:textColor="@color/white"
|
android:textSize="@dimen/textSize_16"
|
android:textStyle="bold">
|
</Button>
|
|
</android.support.constraint.ConstraintLayout>
|
</android.support.constraint.ConstraintLayout>
|