You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
teeth/code/AS/layout/activity_report.xml

271 lines
14 KiB

3 years ago
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.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=".ReportActivity">
<ScrollView
android:id="@+id/teeth_detail"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:id="@+id/linearLayout"
android:layout_width="match_parent"
android:layout_height="43dp"
android:layout_marginTop="24dp"
android:orientation="horizontal"
app:layout_constraintTop_toTopOf="parent"
tools:layout_editor_absoluteX="0dp">
<ImageButton
android:id="@+id/back"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_gravity="left"
android:layout_marginLeft="20dp"
android:src="@drawable/back" />
<TextView
android:id="@+id/resultreport"
android:layout_width="100dp"
android:layout_height="43dp"
android:layout_gravity="center"
android:layout_marginLeft="100dp"
android:layout_marginRight="120dp"
android:text="诊断结果"
android:textSize="23sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</LinearLayout>
<LinearLayout
android:id="@+id/retailed"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_constraintTop_toBottomOf="@+id/linearLayoutSign">
<androidx.cardview.widget.CardView
android:id="@+id/card1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="15dp"
android:clickable="true"
android:foreground="?attr/selectableItemBackground"
android:minHeight="48dp"
app:cardCornerRadius="10dp"
app:cardElevation="15dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<ImageView
android:id="@+id/yourteeth"
android:layout_width="380dp"
android:layout_height="300dp"
android:src="@drawable/teethmode" />
<LinearLayout
android:id="@+id/teeth_score"
android:layout_width="match_parent"
android:layout_height="120dp"
android:layout_marginTop="10dp"
android:orientation="vertical">
<TextView
android:id="@+id/teeth_scoretxt"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:layout_marginLeft="10dp"
android:gravity="left"
android:text="健康状况:"
android:textSize="20sp"/>
<ImageView
android:id="@+id/yourhealth"
android:layout_width="match_parent"
android:layout_height="100dp"
android:src="@drawable/show" />
</LinearLayout>
<TextView
android:id="@+id/teeth_card"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginTop="10dp"
android:gravity="center"
android:padding="3dp"
android:text="您的牙齿状态良好,请继续保持!"
android:textSize="20sp"/>
</LinearLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/card2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="15dp"
android:clickable="true"
android:foreground="?attr/selectableItemBackground"
android:minHeight="48dp"
app:cardCornerRadius="10dp"
app:cardElevation="15dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:id="@+id/teeth_relative"
android:layout_width="match_parent"
android:layout_height="120dp"
android:layout_marginTop="10dp"
android:orientation="vertical"
>
<TextView
android:id="@+id/teeth_question"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_marginLeft="10dp"
android:gravity="left"
android:text="牙齿问题:"
android:textSize="20sp"/>
<TextView
android:id="@+id/teeth_questiondetail"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginTop="10dp"
android:gravity="center"
android:padding="3dp"
android:text="牙齿表面较黄,牙龈有轻微出血症状,细菌含量较高,第二臼齿有明显黑色虫洞。"
android:textSize="20sp" />
</LinearLayout>
<LinearLayout
android:id="@+id/teeth_relative1"
android:layout_width="match_parent"
android:layout_height="120dp"
android:layout_below="@id/teeth_relative"
android:layout_marginTop="10dp"
android:orientation="vertical"
app:layout_constraintTop_toBottomOf="@+id/teeth_relative">
<TextView
android:id="@+id/teeth_ill"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_marginLeft="10dp"
android:gravity="left"
android:text="可能疾病:牙髓炎"
android:textSize="20sp"/>
<TextView
android:id="@+id/teeth_illdetail"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/teeth_ill"
android:layout_centerVertical="true"
android:layout_marginTop="10dp"
android:gravity="center"
android:padding="3dp"
android:text="1.急性牙髓炎
急性牙髓炎(包括慢性牙髓炎急性发作)的主要症状是剧烈疼痛,具有典型的临床特点。
在不受任何外界刺激的情况下突然发生剧烈疼痛,疼痛有持续和缓解的过程,因此具有阵发性发作或阵发性加重的特点;其次是夜间痛,患者常常因为牙痛难以入睡;第三,温度刺激会加剧疼痛,在进食冷热食品时可激发疼痛或者疼痛更为加剧,往往不敢用凉水刷牙。而在牙髓炎晚期,还表现为“热痛冷缓解”的特点,热刺激会产生剧痛,这时患者常常通过含漱冷水来暂时止痛;疼痛发作时,患者大多不能明确指出患牙所在,疼痛常常放射至患牙同侧的上、下颌牙齿或头、面部。
2.慢性牙髓炎
1慢性闭锁性牙髓炎 无明显的自发痛或有偶发的钝痛。但是,几乎所有患者都有长期的冷、热刺激痛病史。
2慢性溃疡性牙髓炎 多无明显的自发痛,但患者常诉有当食物嵌入患牙洞内即出现剧烈的疼痛。另一典型症状是当冷、热刺激激惹患牙时,会产生剧痛。
3慢性增生性牙髓炎 一般无自发痛,有时可有患者诉说进食时患牙疼痛或有进食出血现象,因此,长期不敢用患侧咀嚼食物。"
android:textSize="20sp" />
</LinearLayout>
</LinearLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/card3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="15dp"
android:clickable="true"
android:foreground="?attr/selectableItemBackground"
android:minHeight="48dp"
app:cardCornerRadius="10dp"
app:cardElevation="15dp"
app:layout_constraintTop_toBottomOf="@+id/card2">
<LinearLayout
android:id="@+id/teeth_relative2"
android:layout_width="match_parent"
android:layout_height="120dp"
android:layout_marginTop="10dp"
android:orientation="vertical"
>
<TextView
android:id="@+id/teeth_product"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_marginLeft="10dp"
android:gravity="left"
android:text="推荐产品:"
android:textSize="20sp"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
app:layout_constraintTop_toBottomOf="@+id/teeth_product">
<ImageView
android:id="@+id/iv"
android:src="@drawable/product"
android:layout_width="108dp"
android:layout_height="108dp"
android:padding="12dp"
android:scaleType="centerCrop"/>
<TextView
android:id="@+id/tv_card"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="36dp"
android:layout_toRightOf="@id/iv"
android:gravity="center"
android:padding="3dp"
android:text="牙刷"/>
</LinearLayout>
</LinearLayout>
</androidx.cardview.widget.CardView>
</LinearLayout>
</LinearLayout>
</ScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>