Forráskód Böngészése

[메인][Common] 가입후 첫 메인진입시 토스트팝업 수정 요청 반영

Hasemi 6 éve
szülő
commit
3a5f3d295d

+ 4 - 1
app/src/main/java/kr/co/zumo/app/lifeplus/view/screen/main/MainDebugFragment.java

@@ -9,6 +9,7 @@ import android.content.Intent;
 import android.content.pm.PackageManager;
 import android.net.Uri;
 import android.os.Bundle;
+import android.os.Handler;
 import android.provider.Settings;
 import android.support.annotation.NonNull;
 import android.support.annotation.Nullable;
@@ -110,7 +111,7 @@ public class MainDebugFragment extends FragmentBase<MainPresenter> implements IM
     contentsRecyclerView = findViewById(R.id.recycler_view_main);
     contentsRecyclerView.addOnScrollListener(scrollListener);
 
-   TextView buttonAddSpecialCode = findViewById(R.id.button_add_special_code);
+    TextView buttonAddSpecialCode = findViewById(R.id.button_add_special_code);
 
     buttonAddSpecialCode.setOnClickListener(v -> {
       presenter.onEvent(new Event.Builder(Event.SPECIAL_CODE_CLICK).build());
@@ -347,6 +348,8 @@ public class MainDebugFragment extends FragmentBase<MainPresenter> implements IM
   public void setNewbieLayoutVisible(boolean visible) {
     if (visible) {
       layoutNewbie.setVisibility(View.VISIBLE);
+      new Handler().postDelayed(() -> layoutNewbie.setVisibility(View.GONE), 10000);
+
     }
     else {
       layoutNewbie.animate().withLayer().setStartDelay(200).setDuration(400).translationY(layoutNewbie.getHeight()).start();

+ 2 - 1
app/src/main/res/layout/fragment_main.xml

@@ -33,9 +33,10 @@
     android:layout_height="wrap_content"
     android:layout_alignParentBottom="true"
     android:layout_gravity="bottom"
-    android:background="#000000"
+    android:background="@color/C333333"
     android:orientation="vertical"
     android:visibility="gone"
+    android:animateLayoutChanges="true"
     app:layout_constraintBottom_toBottomOf="parent"
     app:layout_constraintEnd_toEndOf="parent"
     app:layout_constraintStart_toStartOf="parent"