Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fallenstardust
YGOMobile
Commits
10c5e5b5
Commit
10c5e5b5
authored
Jun 21, 2022
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test 启动deckmanager
parent
efc2bb18
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
0 deletions
+54
-0
mobile/src/main/java/cn/garymb/ygomobile/ui/home/HomeFragment.java
...c/main/java/cn/garymb/ygomobile/ui/home/HomeFragment.java
+13
-0
mobile/src/main/res/layout/main_fragment.xml
mobile/src/main/res/layout/main_fragment.xml
+41
-0
No files found.
mobile/src/main/java/cn/garymb/ygomobile/ui/home/HomeFragment.java
View file @
10c5e5b5
...
@@ -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) -> {
...
...
mobile/src/main/res/layout/main_fragment.xml
View file @
10c5e5b5
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment