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
a402f265
Commit
a402f265
authored
Jun 01, 2025
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ypk内的ydk文件不显示上传按钮
parent
90e3178a
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
39 additions
and
43 deletions
+39
-43
mobile/src/main/java/cn/garymb/ygomobile/ui/adapters/DeckListAdapter.java
...java/cn/garymb/ygomobile/ui/adapters/DeckListAdapter.java
+3
-1
mobile/src/main/res/drawable-xhdpi/ic_download.png
mobile/src/main/res/drawable-xhdpi/ic_download.png
+0
-0
mobile/src/main/res/drawable/ic_server_download.png
mobile/src/main/res/drawable/ic_server_download.png
+0
-0
mobile/src/main/res/layout/fragment_deck_square.xml
mobile/src/main/res/layout/fragment_deck_square.xml
+3
-3
mobile/src/main/res/layout/fragment_deck_square_my_deck.xml
mobile/src/main/res/layout/fragment_deck_square_my_deck.xml
+30
-37
mobile/src/main/res/layout/fragment_home.xml
mobile/src/main/res/layout/fragment_home.xml
+1
-1
mobile/src/main/res/layout/item_my_deck.xml
mobile/src/main/res/layout/item_my_deck.xml
+2
-1
No files found.
mobile/src/main/java/cn/garymb/ygomobile/ui/adapters/DeckListAdapter.java
View file @
a402f265
...
...
@@ -223,7 +223,9 @@ public class DeckListAdapter<T extends TextSelect> extends BaseQuickAdapter<T, D
holder
.
item_deck_list
.
setBackgroundResource
(
Color
.
TRANSPARENT
);
}
//卡包展示、人机卡组不显示上传按钮图标
if
(
deckFile
.
getPathFile
().
getParent
().
endsWith
(
Constants
.
CORE_PACK_PATH
)
||
deckFile
.
getPathFile
().
getParent
().
endsWith
(
Constants
.
WINDBOT_DECK_PATH
))
{
if
(
deckFile
.
getPathFile
().
getParent
().
endsWith
(
Constants
.
CORE_PACK_PATH
)
||
deckFile
.
getPathFile
().
getParent
().
endsWith
(
Constants
.
WINDBOT_DECK_PATH
)
||
deckFile
.
getPathFile
().
getParent
().
endsWith
(
"cacheDeck"
))
{
holder
.
local_deck_upload_btn
.
setVisibility
(
View
.
GONE
);
}
else
{
holder
.
local_deck_upload_btn
.
setVisibility
(
View
.
VISIBLE
);
...
...
mobile/src/main/res/drawable-xhdpi/ic_download.png
deleted
100644 → 0
View file @
90e3178a
2.14 KB
mobile/src/main/res/drawable/ic_server_download.png
deleted
100644 → 0
View file @
90e3178a
3.38 KB
mobile/src/main/res/layout/fragment_deck_square.xml
View file @
a402f265
...
...
@@ -87,7 +87,7 @@
<ImageButton
android:id=
"@+id/former_page_btn"
android:layout_width=
"0dp"
android:layout_height=
"
wrap_cont
ent"
android:layout_height=
"
match_par
ent"
android:layout_weight=
"1"
android:layout_margin=
"5dp"
android:background=
"@drawable/ic_radius_bg"
...
...
@@ -96,7 +96,7 @@
<ImageButton
android:id=
"@+id/next_page_btn"
android:layout_width=
"0dp"
android:layout_height=
"
wrap_cont
ent"
android:layout_height=
"
match_par
ent"
android:layout_weight=
"1"
android:layout_margin=
"5dp"
android:background=
"@drawable/ic_radius_bg"
...
...
@@ -105,7 +105,7 @@
<ImageButton
android:id=
"@+id/refresh_data"
android:layout_width=
"0dp"
android:layout_height=
"
wrap_cont
ent"
android:layout_height=
"
match_par
ent"
android:layout_weight=
"1"
android:layout_margin=
"5dp"
android:background=
"@drawable/ic_radius_bg"
...
...
mobile/src/main/res/layout/fragment_deck_square_my_deck.xml
View file @
a402f265
...
...
@@ -3,48 +3,41 @@
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:weightSum=
"12"
android:orientation=
"vertical"
>
<LinearLayout
<EditText
android:id=
"@+id/et_my_deck_input_deck_name"
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_weight=
"11"
android:orientation=
"vertical"
>
<EditText
android:id=
"@+id/et_my_deck_input_deck_name"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center"
android:layout_marginLeft=
"5dp"
android:layout_marginRight=
"5dp"
android:hint=
"@string/intpu_name"
android:imeOptions=
"actionSearch"
android:inputType=
"textNoSuggestions"
android:singleLine=
"true"
android:textColor=
"@color/holo_blue_bright"
android:textColorHint=
"@color/gray"
android:textSize=
"15sp"
/>
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"5dp"
android:layout_marginRight=
"5dp"
android:gravity=
"center"
android:hint=
"@string/intpu_name"
android:imeOptions=
"actionSearch"
android:inputType=
"textNoSuggestions"
android:singleLine=
"true"
android:textColor=
"@color/holo_blue_bright"
android:textColorHint=
"@color/gray"
android:textSize=
"15sp"
/>
<com.tubb.smrv.SwipeMenuRecyclerView
android:id=
"@+id/list_my_deck_info"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:divider=
"@android:color/transparent"
android:dividerHeight=
"4dp"
android:padding=
"5dp"
android:scrollbars=
"vertical"
tools:layout_editor_absoluteX=
"16dp"
tools:layout_editor_absoluteY=
"16dp"
/>
</LinearLayout>
<LinearLayout
<com.tubb.smrv.SwipeMenuRecyclerView
android:id=
"@+id/list_my_deck_info"
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_weight=
"1"
android:divider=
"@android:color/transparent"
android:dividerHeight=
"4dp"
android:padding=
"5dp"
android:scrollbars=
"vertical"
tools:layout_editor_absoluteX=
"16dp"
tools:layout_editor_absoluteY=
"16dp"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"bottom"
android:layout_margin=
"5dp"
android:
weightSum=
"3
"
>
android:
orientation=
"horizontal
"
>
<View
android:layout_width=
"0dp"
...
...
@@ -54,13 +47,13 @@
<ImageButton
android:id=
"@+id/refresh_data"
android:layout_width=
"
0dp
"
android:layout_width=
"
wrap_content
"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_margin=
"5dp"
android:layout_weight=
"1"
android:layout_gravity=
"center|bottom"
android:background=
"@drawable/ic_radius_bg"
android:src=
"@drawable/ic_refresh"
/>
<View
android:layout_width=
"0dp"
android:layout_height=
"1dp"
...
...
mobile/src/main/res/layout/fragment_home.xml
View file @
a402f265
...
...
@@ -136,7 +136,7 @@
android:orientation=
"vertical"
>
<LinearLayout
android:layout_width=
"
wrap_cont
ent"
android:layout_width=
"
match_par
ent"
android:layout_height=
"0dp"
android:layout_weight=
"1"
android:weightSum=
"2.3"
...
...
mobile/src/main/res/layout/item_my_deck.xml
View file @
a402f265
...
...
@@ -54,7 +54,7 @@
android:layout_gravity=
"end"
android:layout_margin=
"5dp"
android:background=
"@drawable/button_radius_red"
android:rotation=
"4
8
"
android:rotation=
"4
5
"
android:src=
"@drawable/ic_add_white"
/>
<LinearLayout
...
...
@@ -65,6 +65,7 @@
android:orientation=
"vertical"
>
<LinearLayout
android:id=
"@+id/ll_switch_show"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
...
...
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