<?xml version="1.0" encoding="utf-8"?>
|
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="6dp"
|
app:cardBackgroundColor="@android:color/white"
|
app:cardCornerRadius="8dp"
|
app:cardElevation="1dp"
|
app:strokeColor="@color/card_stroke"
|
app:strokeWidth="1dp">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:padding="10dp">
|
|
<TextView
|
android:id="@+id/test_item_chinese_name_text"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:textColor="@color/text_primary"
|
android:textSize="16sp"
|
android:textStyle="bold" />
|
|
<TextView
|
android:id="@+id/test_item_method_name_text"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="2dp"
|
android:textColor="@color/text_secondary"
|
android:textSize="13sp" />
|
|
<TextView
|
android:id="@+id/test_item_description_text"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="6dp"
|
android:lineSpacingExtra="1dp"
|
android:textColor="@color/text_primary"
|
android:textSize="14sp" />
|
|
<com.google.android.material.materialswitch.MaterialSwitch
|
android:id="@+id/test_item_switch"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="8dp"
|
android:visibility="gone" />
|
|
<EditText
|
android:id="@+id/test_item_input_edit"
|
android:layout_width="match_parent"
|
android:layout_height="40dp"
|
android:layout_marginTop="8dp"
|
android:background="@drawable/bg_result_panel"
|
android:ellipsize="end"
|
android:gravity="center_vertical|start"
|
android:inputType="number"
|
android:maxLines="1"
|
android:minHeight="40dp"
|
android:paddingStart="8dp"
|
android:paddingEnd="8dp"
|
android:singleLine="true"
|
android:textColor="@color/text_primary"
|
android:textColorHint="@color/text_secondary"
|
android:textSize="13sp"
|
android:visibility="gone" />
|
|
<LinearLayout
|
android:id="@+id/test_item_input_container"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:visibility="gone" />
|
|
<com.google.android.material.button.MaterialButton
|
android:id="@+id/test_item_button"
|
android:layout_width="match_parent"
|
android:layout_height="40dp"
|
android:layout_marginTop="8dp"
|
android:minHeight="40dp"
|
android:paddingTop="0dp"
|
android:paddingBottom="0dp"
|
android:text="测试" />
|
|
<TextView
|
android:id="@+id/test_item_result_text"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="8dp"
|
android:background="@drawable/bg_result_panel"
|
android:gravity="center_vertical|start"
|
android:minHeight="34dp"
|
android:paddingStart="8dp"
|
android:paddingTop="6dp"
|
android:paddingEnd="8dp"
|
android:paddingBottom="6dp"
|
android:singleLine="true"
|
android:ellipsize="end"
|
android:textColor="@color/text_primary"
|
android:textSize="13sp" />
|
|
</LinearLayout>
|
|
</com.google.android.material.card.MaterialCardView>
|