From 591d163f556d10a1a540782dc495b22128a427c7 Mon Sep 17 00:00:00 2001 From: panqihua <1029559041@qq.com> Date: Fri, 10 Apr 2020 08:30:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=9E=83=E5=9C=BE=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pocket/ui/main/ui/garbage/waste/GarbageWasteResponse.java | 3 ++- .../res/layout/main/layout/garbage/layout/garbage_sorting.xml | 1 + .../res/layout/main/layout/garbage/layout/garbage_waste.xml | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/community/pocket/ui/main/ui/garbage/waste/GarbageWasteResponse.java b/app/src/main/java/com/community/pocket/ui/main/ui/garbage/waste/GarbageWasteResponse.java index 6fad570..e800d9f 100644 --- a/app/src/main/java/com/community/pocket/ui/main/ui/garbage/waste/GarbageWasteResponse.java +++ b/app/src/main/java/com/community/pocket/ui/main/ui/garbage/waste/GarbageWasteResponse.java @@ -1,5 +1,6 @@ package com.community.pocket.ui.main.ui.garbage.waste; +import com.community.pocket.R; import com.community.pocket.data.model.GarbageWasteManage; import com.community.pocket.data.model.GarbageWastePrice; import com.community.pocket.ui.main.ui.share.Response; @@ -12,7 +13,7 @@ import java.util.List; public class GarbageWasteResponse extends Response { enum Msg implements CustomMessage { - ; + ok(R.string.garbage_waste_search_ok); private Integer msg; diff --git a/app/src/main/res/layout/main/layout/garbage/layout/garbage_sorting.xml b/app/src/main/res/layout/main/layout/garbage/layout/garbage_sorting.xml index 7381fef..00524ae 100644 --- a/app/src/main/res/layout/main/layout/garbage/layout/garbage_sorting.xml +++ b/app/src/main/res/layout/main/layout/garbage/layout/garbage_sorting.xml @@ -16,6 +16,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:completionThreshold="1" + android:gravity="center" android:hint="@string/prompt_garbage_name" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> diff --git a/app/src/main/res/layout/main/layout/garbage/layout/garbage_waste.xml b/app/src/main/res/layout/main/layout/garbage/layout/garbage_waste.xml index fa9de50..8d5bf45 100644 --- a/app/src/main/res/layout/main/layout/garbage/layout/garbage_waste.xml +++ b/app/src/main/res/layout/main/layout/garbage/layout/garbage_waste.xml @@ -35,6 +35,7 @@ android:layout_height="wrap_content" android:layout_marginTop="8dp" android:completionThreshold="1" + android:gravity="center" android:hint="@string/garbage_waste_search" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/mobie" />