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
4cf33840
Commit
4cf33840
authored
Jun 20, 2022
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加布局
parent
9b779191
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
204 additions
and
21 deletions
+204
-21
mobile/src/main/java/cn/garymb/ygomobile/ui/home/HomeFragment.java
...c/main/java/cn/garymb/ygomobile/ui/home/HomeFragment.java
+13
-7
mobile/src/main/res/drawable-xhdpi/replay.png
mobile/src/main/res/drawable-xhdpi/replay.png
+0
-0
mobile/src/main/res/layout/main_fragment.xml
mobile/src/main/res/layout/main_fragment.xml
+181
-14
mobile/src/main/res/menu/nav_main_menu.xml
mobile/src/main/res/menu/nav_main_menu.xml
+8
-0
mobile/src/main/res/values-zh/strings.xml
mobile/src/main/res/values-zh/strings.xml
+2
-0
No files found.
mobile/src/main/java/cn/garymb/ygomobile/ui/home/HomeFragment.java
View file @
4cf33840
...
@@ -491,18 +491,18 @@ public class HomeFragment extends BaseFragemnt implements View.OnClickListener {
...
@@ -491,18 +491,18 @@ public class HomeFragment extends BaseFragemnt implements View.OnClickListener {
@Override
@Override
public
void
onClick
(
View
v
)
{
public
void
onClick
(
View
v
)
{
switch
(
v
.
getId
())
{
switch
(
v
.
getId
())
{
case
R
.
id
.
nav_webpage
:
{
case
R
.
id
.
action_about
:
Intent
intent
=
new
Intent
(
Intent
.
ACTION_VIEW
)
;
break
;
intent
.
setData
(
Uri
.
parse
(
BuildConfig
.
URL_DONATE
));
case
R
.
id
.
action_replay
:
startActivity
(
intent
)
;
break
;
}
case
R
.
id
.
action_bot
:
break
;
break
;
case
R
.
id
.
action_game
:
case
R
.
id
.
action_game
:
setRandomCardDetail
();
setRandomCardDetail
();
if
(
mCardDetailRandom
!=
null
)
{
if
(
mCardDetailRandom
!=
null
)
{
mCardDetailRandom
.
show
();
mCardDetailRandom
.
show
();
}
}
//
openGame();
openGame
();
break
;
break
;
case
R
.
id
.
action_settings
:
{
case
R
.
id
.
action_settings
:
{
Intent
intent
=
new
Intent
(
getContext
(),
SettingsActivity
.
class
);
Intent
intent
=
new
Intent
(
getContext
(),
SettingsActivity
.
class
);
...
@@ -545,6 +545,12 @@ public class HomeFragment extends BaseFragemnt implements View.OnClickListener {
...
@@ -545,6 +545,12 @@ public class HomeFragment extends BaseFragemnt implements View.OnClickListener {
case
R
.
id
.
action_reset_game_res
:
case
R
.
id
.
action_reset_game_res
:
updateImages
();
updateImages
();
break
;
break
;
case
R
.
id
.
nav_webpage
:
{
Intent
intent
=
new
Intent
(
Intent
.
ACTION_VIEW
);
intent
.
setData
(
Uri
.
parse
(
BuildConfig
.
URL_DONATE
));
startActivity
(
intent
);
}
break
;
}
}
}
}
}
}
mobile/src/main/res/drawable-xhdpi/replay.png
0 → 100644
View file @
4cf33840
34.8 KB
mobile/src/main/res/layout/main_fragment.xml
View file @
4cf33840
This diff is collapsed.
Click to expand it.
mobile/src/main/res/menu/nav_main_menu.xml
View file @
4cf33840
...
@@ -21,6 +21,14 @@
...
@@ -21,6 +21,14 @@
android:id=
"@+id/action_reset_game_res"
android:id=
"@+id/action_reset_game_res"
android:icon=
"@drawable/ic_file_download_black_24dp"
android:icon=
"@drawable/ic_file_download_black_24dp"
android:title=
"@string/reset_game_res"
/>
android:title=
"@string/reset_game_res"
/>
<item
android:id=
"@+id/action_replay"
android:icon=
"@drawable/ic_album"
android:title=
"@string/replay"
/>
<item
android:id=
"@+id/action_bot"
android:icon=
"@drawable/ic_copy"
android:title=
"@string/bot_mode"
/>
<item
android:title=
"@string/menu"
>
<item
android:title=
"@string/menu"
>
<menu>
<menu>
...
...
mobile/src/main/res/values-zh/strings.xml
View file @
4cf33840
...
@@ -319,4 +319,6 @@
...
@@ -319,4 +319,6 @@
<string
name=
"file_installed"
>
文件已导入
</string>
<string
name=
"file_installed"
>
文件已导入
</string>
<string
name=
"settings_screen_padding"
>
瀑布屏预留高度
</string>
<string
name=
"settings_screen_padding"
>
瀑布屏预留高度
</string>
<string
name=
"tip_load_cdb_error"
>
加载数据出错
</string>
<string
name=
"tip_load_cdb_error"
>
加载数据出错
</string>
<string
name=
"replay"
>
查看录像
</string>
<string
name=
"bot_mode"
>
人机练习
</string>
</resources>
</resources>
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