ソースを参照

[마이메인][Common] 비로그인시 소멸예정 코인 클릭하면 마이코인으로 진입되게 수정

Hasemi 7 年 前
コミット
11af1b97c3

+ 8 - 0
app/src/main/java/kr/co/zumo/app/lifeplus/view/screen/my/main/MyMainFragment.java

@@ -121,6 +121,13 @@ public abstract class MyMainFragment extends FragmentBase<MyMainPresenter> imple
 
 
     findViewById(R.id.text_view_my_coin).setOnClickListener(view -> {presenter.onEvent(new Event.Builder(Event.MY_COIN_MAIN).build());});
+    findViewById(R.id.image_view_my_coin_arrow).setOnClickListener(view -> {presenter.onEvent(new Event.Builder(Event.MY_COIN_MAIN).build());});
+    findViewById(R.id.text_view_my_coin).setOnClickListener(view -> {presenter.onEvent(new Event.Builder(Event.MY_COIN_MAIN).build());});
+
+    findViewById(R.id.text_view_guest_coin).setOnClickListener(view -> {presenter.onEvent(new Event.Builder(Event.MY_COIN_MAIN).build());});
+    findViewById(R.id.image_view_guest_coin).setOnClickListener(view -> {presenter.onEvent(new Event.Builder(Event.MY_COIN_MAIN).build());});
+    findViewById(R.id.image_view_my_guest_coin_arrow).setOnClickListener(view -> {presenter.onEvent(new Event.Builder(Event.MY_COIN_MAIN).build());});
+
     textViewBookmarkCount.setOnClickListener(view -> { presenter.onEvent(new Event.Builder(Event.BOOK_MARK_LIST).build());});
     findViewById(R.id.text_view_purchase).setOnClickListener(view -> {presenter.onEvent(new Event.Builder(Event.MY_PURCHASE_HISTORY).build());});
 
@@ -129,6 +136,7 @@ public abstract class MyMainFragment extends FragmentBase<MyMainPresenter> imple
     textViewConfirmUser.setOnClickListener(view -> { presenter.onEvent(new Event.Builder(Event.SIGN_UP).build());});
     findViewById(R.id.image_view_coupon_mall).setOnClickListener(view -> { presenter.onEvent(new Event.Builder(Event.COUPON_MALL).build());});
 
+    findViewById(R.id.text_view_become_extinction).setOnClickListener(view -> { presenter.onEvent(new Event.Builder(Event.COUPON_MALL).build());});
     createMemberOrGuest();
   }
 

+ 5 - 5
app/src/main/res/layout/fragment_my_main.xml

@@ -5,8 +5,7 @@
   xmlns:tools="http://schemas.android.com/tools"
   android:layout_width="match_parent"
   android:layout_height="match_parent"
-  android:orientation="vertical"
-  tools:layout_marginTop="-500dp">
+  android:orientation="vertical">
 
   <android.support.constraint.ConstraintLayout
     android:layout_width="match_parent"
@@ -20,7 +19,7 @@
       android:layout_height="wrap_content"
       android:layout_marginBottom="16dp"
       app:layout_constraintBottom_toTopOf="@+id/divider"
-      tools:visibility="gone">
+      tools:visibility="visible">
 
       <TextView
         android:id="@+id/text_view_my_coin"
@@ -224,6 +223,7 @@
         />
 
       <TextView
+        android:id="@+id/text_view_become_extinction"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:layout_marginTop="5dp"
@@ -607,10 +607,10 @@
         android:id="@+id/my_bucket_list_card_view1"
         android:layout_width="148dp"
         android:layout_height="148dp"
-        app:layout_constraintHorizontal_chainStyle="spread"
         android:background="@drawable/faq_text_border"
         app:layout_constraintEnd_toStartOf="@+id/my_bucket_list_card_view2"
         app:layout_constraintHorizontal_bias="0.5"
+        app:layout_constraintHorizontal_chainStyle="spread"
         app:layout_constraintStart_toStartOf="parent">
 
         <TextView
@@ -680,9 +680,9 @@
         android:layout_width="148dp"
         android:layout_height="148dp"
         android:background="@drawable/faq_text_border"
-        app:layout_constraintHorizontal_chainStyle="spread_inside"
         app:layout_constraintEnd_toEndOf="parent"
         app:layout_constraintHorizontal_bias="0.5"
+        app:layout_constraintHorizontal_chainStyle="spread_inside"
         app:layout_constraintStart_toEndOf="@+id/my_bucket_list_card_view1">
 
         <TextView