瀏覽代碼

[공통][Common] 토스트 설정 변경

hyodong.min 6 年之前
父節點
當前提交
ea375824a6

+ 5 - 5
app/src/main/java/kr/co/zumo/app/lifeplus/view/ToastProvider.java

@@ -76,7 +76,7 @@ public class ToastProvider {
     LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
     View view;
     if (copyToastFlag != 0) {
-      view = inflater.inflate(R.layout.setting_toast_url_copy_pop_up, null);
+      view = inflater.inflate(R.layout.toast_simple, null);
       ((TextView) view.findViewById(R.id.setting_toast_detail)).setText(detail);
     }
     else {
@@ -100,11 +100,11 @@ public class ToastProvider {
     Context context = App.getInstance().getContext();
     Toast toast = new Toast(context);
     toast.setDuration(Toast.LENGTH_LONG);
-    toast.setGravity(Gravity.FILL_HORIZONTAL | Gravity.BOTTOM, 0, 0);
+    toast.setGravity(Gravity.FILL, 0, 0);
     LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
     View view;
     if (copyToastFlag != 0) {
-      view = inflater.inflate(R.layout.setting_toast_url_copy_pop_up, null);
+      view = inflater.inflate(R.layout.toast_simple, null);
       ((TextView) view.findViewById(R.id.setting_toast_detail)).setText(detail);
     }
     else {
@@ -142,10 +142,10 @@ public class ToastProvider {
     Context context = App.getInstance().getContext();
     Toast toast = new Toast(context);
     toast.setDuration(Toast.LENGTH_LONG);
-    toast.setGravity(Gravity.FILL_HORIZONTAL | Gravity.BOTTOM, 0, 0);
+    toast.setGravity(Gravity.FILL, 0, 0);
     LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
     View view;
-    view = inflater.inflate(R.layout.setting_toast_url_copy_pop_up, null);
+    view = inflater.inflate(R.layout.toast_simple, null);
     ((TextView) view.findViewById(R.id.setting_toast_detail)).setText(str);
 
     toast.setView(view);

+ 1 - 0
app/src/main/res/layout/setting_toast_url_copy_pop_up.xml

@@ -3,6 +3,7 @@
   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:background="@color/C999999"
   android:layout_width="match_parent"
   android:layout_height="match_parent">