refactor(activity): 重构食材识别流程,改由接口查询识别结果,queryGoodsList 改为具名参数
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
android:layout_marginTop="12dp">
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recyclerView"
|
||||
android:id="@+id/rvRecognizeList"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:overScrollMode="never"
|
||||
@@ -68,6 +68,18 @@
|
||||
android:layout_marginEnd="1dp"
|
||||
android:background="@drawable/scrollbar_thumb_food_recognize"
|
||||
android:visibility="gone" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvNoData"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:text="无此食材,请联系管理员添加"
|
||||
android:gravity="center"
|
||||
android:textStyle="bold"
|
||||
android:textSize="40sp"
|
||||
android:textColor="@color/red_ff4444"
|
||||
android:background="@color/white"
|
||||
android:visibility="gone"/>
|
||||
</FrameLayout>
|
||||
|
||||
<LinearLayout
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
</FrameLayout>
|
||||
|
||||
<com.yanzhenjie.recyclerview.SwipeRecyclerView
|
||||
android:id="@+id/rvDishPartList"
|
||||
android:id="@+id/rvMaterialList"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginBottom="20dp"
|
||||
|
||||
Reference in New Issue
Block a user