Преглед изворни кода

[마이][Bug] 북마크 레이아웃 버그 수정

Hasemi пре 7 година
родитељ
комит
d15c2f5481

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

@@ -171,6 +171,7 @@ public abstract class MyMainFragment extends FragmentBase<MyMainPresenter> imple
     if (size > 0) {
       // #1
       layoutLikeBookmark1.setVisibility(View.VISIBLE);
+      layoutLikeBookmark2.setVisibility(View.GONE);
       textViewBookmark1.setText(bookmarkBeans.get(0).getTitle());
       Glide.with(imageViewBookmark1).load(bookmarkBeans.get(0).getImageUrl()).into(imageViewBookmark1);
 

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

@@ -5,6 +5,7 @@
   xmlns:tools="http://schemas.android.com/tools"
   android:layout_width="match_parent"
   android:layout_height="match_parent"
+  tools:layout_marginTop="-300dp"
   android:orientation="vertical">
 
   <android.support.constraint.ConstraintLayout
@@ -360,6 +361,8 @@
       android:layout_width="match_parent"
       android:layout_height="wrap_content"
       android:layout_marginTop="13dp"
+      android:visibility="gone"
+      tools:visibility="visible"
       app:layout_constraintTop_toBottomOf="@+id/fourth_layout">
 
       <ImageView
@@ -442,6 +445,8 @@
       android:layout_width="match_parent"
       android:layout_height="wrap_content"
       android:layout_marginTop="25dp"
+      android:visibility="gone"
+      tools:visibility="visible"
       app:layout_constraintTop_toBottomOf="@+id/fifth_layout">
 
       <ImageView