Commit 512247ba authored by fallenstardust's avatar fallenstardust

由预览卡组广场的卡组时切换到本地卡组自动隐藏点赞按钮

点赞后清除卡组id
微调点赞布局
parent a478328c
...@@ -239,7 +239,10 @@ public class DeckManagerFragment extends BaseFragemnt implements RecyclerViewIte ...@@ -239,7 +239,10 @@ public class DeckManagerFragment extends BaseFragemnt implements RecyclerViewIte
} else { } else {
YGOUtil.showTextToast(data != null ? data.getMessage() : "点赞失败"); YGOUtil.showTextToast(data != null ? data.getMessage() : "点赞失败");
} }
mDeckId = null;
}); });
} else {
ll_click_like.setVisibility(View.GONE);
} }
}); });
tv_deck.setOnClickListener(v -> { tv_deck.setOnClickListener(v -> {
...@@ -1363,6 +1366,7 @@ public class DeckManagerFragment extends BaseFragemnt implements RecyclerViewIte ...@@ -1363,6 +1366,7 @@ public class DeckManagerFragment extends BaseFragemnt implements RecyclerViewIte
} else { } else {
loadDeckFromFile(deckFile.getPathFile()); loadDeckFromFile(deckFile.getPathFile());
ll_click_like.setVisibility(View.GONE);
} }
} }
......
...@@ -81,7 +81,13 @@ ...@@ -81,7 +81,13 @@
android:layout_marginStart="5dp" android:layout_marginStart="5dp"
android:layout_marginEnd="5dp" android:layout_marginEnd="5dp"
android:layout_weight="1" android:layout_weight="1"
android:textSize="10sp"
android:maxLines="1"
android:gravity="center" android:gravity="center"
android:shadowColor="@color/black"
android:shadowDx="1"
android:shadowDy="1"
android:shadowRadius="2"
android:text="@string/like_deck_thumb" android:text="@string/like_deck_thumb"
android:textColor="@color/white" /> android:textColor="@color/white" />
</LinearLayout> </LinearLayout>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment