优化
This commit is contained in:
@@ -34,7 +34,8 @@
|
||||
android:textColor="#141428"
|
||||
android:textSize="24sp"
|
||||
android:textStyle="bold"
|
||||
tools:text="冯厨子" />
|
||||
tools:text="冯厨子"
|
||||
android:visibility="gone"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/ivLogout"
|
||||
@@ -43,7 +44,31 @@
|
||||
android:layout_marginEnd="40dp"
|
||||
android:paddingHorizontal="20dp"
|
||||
android:src="@mipmap/ic_logout"
|
||||
tools:ignore="ContentDescription" />
|
||||
tools:ignore="ContentDescription"
|
||||
android:visibility="gone"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvTotalWeight"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingHorizontal="50dp"
|
||||
android:gravity="center"
|
||||
android:textColor="#FF141428"
|
||||
android:textSize="24sp"
|
||||
tools:text="重量:6300克" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatButton
|
||||
android:id="@+id/btnClearZero"
|
||||
android:layout_width="120dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginVertical="20dp"
|
||||
android:layout_marginEnd="20dp"
|
||||
android:background="@drawable/bg_white_alpha40_radius6"
|
||||
android:gravity="center"
|
||||
android:text="清零"
|
||||
android:textColor="#FF141428"
|
||||
android:textSize="24sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
|
||||
@@ -22,12 +22,12 @@
|
||||
<TextView
|
||||
android:id="@+id/tvDialogTitle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="180dp"
|
||||
android:text="物品识别结果"
|
||||
android:textColor="#ff141428"
|
||||
android:textSize="36sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintBottom_toTopOf="@+id/flContent"
|
||||
android:gravity="center_vertical"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
@@ -39,14 +39,13 @@
|
||||
android:layout_marginHorizontal="30dp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
android:layout_marginTop="180dp">
|
||||
app:layout_constraintTop_toBottomOf="@id/tvDialogTitle">
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rvRecognize"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center"
|
||||
android:layout_gravity="top|center_horizontal"
|
||||
tools:itemCount="5"
|
||||
android:overScrollMode="never"
|
||||
tools:listitem="@layout/list_item_recognize" />
|
||||
@@ -57,7 +56,7 @@
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:layout_gravity="center"
|
||||
android:layout_gravity="top|center_horizontal"
|
||||
android:background="@color/white"
|
||||
android:visibility="gone"
|
||||
tools:ignore="HardcodedText,UseCompoundDrawables">
|
||||
@@ -118,16 +117,34 @@
|
||||
android:textSize="30sp"
|
||||
android:background="@drawable/bg_blue_ripple"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="若以上识别结果都不是该物品,请点击“重新识别”或“手动查找”"
|
||||
android:textColor="#ff999999"
|
||||
android:textSize="30sp"
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintBottom_toTopOf="@id/dividerLine"
|
||||
android:layout_marginBottom="60dp"/>
|
||||
app:layout_constraintTop_toBottomOf="@id/flContent"
|
||||
app:layout_constraintBottom_toTopOf="@id/dividerLine">
|
||||
|
||||
<Space
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="2"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="若以上识别结果都不是该物品,请点击“重新识别”或“手动查找”"
|
||||
android:textColor="#ff999999"
|
||||
android:textSize="30sp" />
|
||||
|
||||
<Space
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!-- <LinearLayout-->
|
||||
<!-- android:layout_width="0dp"-->
|
||||
|
||||
@@ -212,7 +212,8 @@
|
||||
android:layout_width="428dp"
|
||||
android:layout_height="70dp"
|
||||
android:layout_marginStart="57dp"
|
||||
android:background="@drawable/bg_white_radius10_stroke2">
|
||||
android:background="@drawable/bg_gray_radius10">
|
||||
<!-- bg_white_radius10_stroke2-->
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvProcurementPrice"
|
||||
@@ -232,6 +233,7 @@
|
||||
tools:ignore="Autofill,TextFields" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvPriceUnit"
|
||||
android:layout_width="70dp"
|
||||
android:layout_height="70dp"
|
||||
android:layout_gravity="end|center_vertical"
|
||||
@@ -239,7 +241,8 @@
|
||||
android:text="元"
|
||||
android:textColor="#ff96a0aa"
|
||||
android:textSize="24sp"
|
||||
android:textStyle="bold" />
|
||||
android:textStyle="bold"
|
||||
android:visibility="invisible"/>
|
||||
</FrameLayout>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user