Commit 10c5e5b5 authored by fallenstardust's avatar fallenstardust

test 启动deckmanager

parent efc2bb18
...@@ -60,6 +60,7 @@ import cn.garymb.ygomobile.ui.cards.DeckManagerActivity; ...@@ -60,6 +60,7 @@ import cn.garymb.ygomobile.ui.cards.DeckManagerActivity;
import cn.garymb.ygomobile.ui.plus.DialogPlus; import cn.garymb.ygomobile.ui.plus.DialogPlus;
import cn.garymb.ygomobile.ui.plus.VUiKit; import cn.garymb.ygomobile.ui.plus.VUiKit;
import cn.garymb.ygomobile.ui.preference.SettingsActivity; import cn.garymb.ygomobile.ui.preference.SettingsActivity;
import cn.garymb.ygomobile.ui.widget.CardView;
import cn.garymb.ygomobile.ui.widget.Shimmer; import cn.garymb.ygomobile.ui.widget.Shimmer;
import cn.garymb.ygomobile.ui.widget.ShimmerTextView; import cn.garymb.ygomobile.ui.widget.ShimmerTextView;
import cn.garymb.ygomobile.utils.FileUtils; import cn.garymb.ygomobile.utils.FileUtils;
...@@ -80,6 +81,11 @@ public class HomeFragment extends BaseFragemnt implements View.OnClickListener { ...@@ -80,6 +81,11 @@ public class HomeFragment extends BaseFragemnt implements View.OnClickListener {
private CardDetailRandom mCardDetailRandom; private CardDetailRandom mCardDetailRandom;
private ImageLoader mImageLoader; private ImageLoader mImageLoader;
View cv_deckmanager;
View cv_donation;
View cv_game;
View cv_download_ex;
@Nullable @Nullable
@Override @Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
...@@ -122,6 +128,13 @@ public class HomeFragment extends BaseFragemnt implements View.OnClickListener { ...@@ -122,6 +128,13 @@ public class HomeFragment extends BaseFragemnt implements View.OnClickListener {
mServerListManager = new ServerListManager(getContext(), mServerListAdapter); mServerListManager = new ServerListManager(getContext(), mServerListAdapter);
mServerListManager.bind(mServerList); mServerListManager.bind(mServerList);
mServerListManager.syncLoadData(); mServerListManager.syncLoadData();
cv_deckmanager = view.findViewById(R.id.action_deck_manager);
cv_deckmanager.setOnClickListener((v) -> {
startActivity(new Intent(getActivity(), DeckManagerActivity.class));
});
cv_donation = view.findViewById(R.id.nav_webpage);
cv_game = view.findViewById(R.id.action_game);
cv_download_ex = view.findViewById(R.id.action_download_ex);
/*/萌卡 /*/萌卡
ImageView iv_mc = view.findViewById(R.id.btn_mycard); ImageView iv_mc = view.findViewById(R.id.btn_mycard);
iv_mc.setOnClickListener((v) -> { iv_mc.setOnClickListener((v) -> {
......
...@@ -264,6 +264,47 @@ ...@@ -264,6 +264,47 @@
android:textStyle="bold" /> android:textStyle="bold" />
</RelativeLayout> </RelativeLayout>
</androidx.cardview.widget.CardView> </androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/action_deck_managerk"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_marginBottom="10dp"
android:clickable="true"
android:foreground="?android:attr/selectableItemBackground"
android:orientation="vertical"
app:cardBackgroundColor="@color/transparent"
app:cardElevation="0dp"
app:cardUseCompatPadding="false"
app:elevation="0dp">
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="-30dp"
android:layout_marginLeft="20dp"
android:layout_marginTop="20dp"
android:layout_marginEnd="-30dp"
android:layout_marginRight="-20dp"
android:layout_marginBottom="-20dp"
android:scaleType="fitEnd"
android:src="@drawable/downloadimages" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/window3"
android:paddingLeft="13dp"
android:paddingTop="13dp"
android:text="@string/deck_manager"
android:textColor="@color/holo_blue_bright"
android:textSize="10sp"
android:textStyle="bold" />
</RelativeLayout>
</androidx.cardview.widget.CardView>
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"
......
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