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
8f4966b2
Commit
8f4966b2
authored
Feb 19, 2021
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update guide page
parent
7fa3274f
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
92 additions
and
5 deletions
+92
-5
build.gradle
build.gradle
+1
-1
mobile/src/main/java/cn/garymb/ygomobile/ui/home/HomeActivity.java
...c/main/java/cn/garymb/ygomobile/ui/home/HomeActivity.java
+6
-4
mobile/src/main/res/drawable-xhdpi/alipay.png
mobile/src/main/res/drawable-xhdpi/alipay.png
+0
-0
mobile/src/main/res/drawable-xhdpi/paypal.png
mobile/src/main/res/drawable-xhdpi/paypal.png
+0
-0
mobile/src/main/res/drawable-xhdpi/wechat.png
mobile/src/main/res/drawable-xhdpi/wechat.png
+0
-0
mobile/src/main/res/layout/activity_home.xml
mobile/src/main/res/layout/activity_home.xml
+1
-0
mobile/src/main/res/layout/view_guide_home.xml
mobile/src/main/res/layout/view_guide_home.xml
+13
-0
mobile/src/main/res/layout/view_guide_server_pw.xml
mobile/src/main/res/layout/view_guide_server_pw.xml
+37
-0
mobile/src/main/res/layout/view_guide_servers.xml
mobile/src/main/res/layout/view_guide_servers.xml
+34
-0
No files found.
build.gradle
View file @
8f4966b2
...
...
@@ -7,7 +7,7 @@ buildscript {
google
()
}
dependencies
{
classpath
'com.android.tools.build:gradle:4.1.
1
'
classpath
'com.android.tools.build:gradle:4.1.
2
'
//classpath 'me.tatarka:gradle-retrolambda:3.2.5'
}
}
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/home/HomeActivity.java
View file @
8f4966b2
...
...
@@ -29,6 +29,7 @@ import androidx.recyclerview.widget.LinearLayoutManager;
import
com.app.hubert.guide.NewbieGuide
;
import
com.app.hubert.guide.model.GuidePage
;
import
com.app.hubert.guide.model.HighLight
;
import
com.google.android.material.navigation.NavigationView
;
import
com.nightonke.boommenu.BoomButtons.BoomButton
;
import
com.nightonke.boommenu.BoomButtons.TextOutsideCircleButton
;
...
...
@@ -675,10 +676,11 @@ public abstract class HomeActivity extends BaseActivity implements NavigationVie
public
void
showNewbieGuide
()
{
NewbieGuide
.
with
(
this
)
//with方法可以传入Activity或者Fragment,获取引导页的依附者
.
setLabel
(
"homeguide"
)
.
addGuidePage
(
GuidePage
.
newInstance
()
.
setBackgroundColor
(
0x60000000
)
.
addHighLight
(
findViewById
(
R
.
id
.
menu
))
.
setLayoutRes
(
R
.
layout
.
activity_logo
))
.
addGuidePage
(
GuidePage
.
newInstance
().
setEverywhereCancelable
(
true
)
.
setBackgroundColor
(
0xcc000000
)
.
addHighLight
(
findViewById
(
R
.
id
.
menu
),
HighLight
.
Shape
.
CIRCLE
)
.
setLayoutRes
(
R
.
layout
.
view_guide_home
))
.
alwaysShow
(
true
)
//总是显示,调试时可以打开
.
show
();
}
...
...
mobile/src/main/res/drawable-xhdpi/alipay.png
deleted
100644 → 0
View file @
7fa3274f
3.77 KB
mobile/src/main/res/drawable-xhdpi/paypal.png
deleted
100644 → 0
View file @
7fa3274f
6.12 KB
mobile/src/main/res/drawable-xhdpi/wechat.png
deleted
100644 → 0
View file @
7fa3274f
6.34 KB
mobile/src/main/res/layout/activity_home.xml
View file @
8f4966b2
...
...
@@ -46,6 +46,7 @@
android:orientation=
"horizontal"
>
<LinearLayout
android:id=
"@+id/mycard"
android:layout_width=
"60dp"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
>
...
...
mobile/src/main/res/layout/view_guide_home.xml
0 → 100644
View file @
8f4966b2
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<TextView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_margin=
"20dp"
android:text=
"软件主要功能在这里\n如教程,单人游戏,卡组编辑,设置等"
android:textSize=
"20sp"
/>
</FrameLayout>
\ No newline at end of file
mobile/src/main/res/layout/view_guide_server_pw.xml
0 → 100644
View file @
8f4966b2
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<TextView
android:id=
"@+id/textView"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerHorizontal=
"true"
android:layout_margin=
"40dp"
android:gravity=
"center"
android:text=
"密码用于好友约战,或者指定模式\n密码可以不填"
android:textColor=
"@android:color/white"
android:textSize=
"20sp"
/>
<ImageView
android:id=
"@+id/iv"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/textView"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"100dp"
android:src=
"@drawable/cube"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/iv"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"20dp"
android:gravity=
"center"
android:text=
"输入密码后会保存在历史记录\n长按对应记录即可删除"
android:textColor=
"@android:color/white"
/>
</RelativeLayout>
\ No newline at end of file
mobile/src/main/res/layout/view_guide_servers.xml
0 → 100644
View file @
8f4966b2
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<TextView
android:id=
"@+id/textView"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_centerInParent=
"true"
android:layout_margin=
"20dp"
android:text=
"点击一个服务器模块\n即可加入相应的在线游戏"
android:textSize=
"20sp"
/>
<LinearLayout
android:id=
"@+id/abt_rename"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/textView"
>
<ImageView
android:layout_width=
"@dimen/dp_40"
android:layout_height=
"@dimen/dp_40"
android:layout_margin=
"20dp"
android:src=
"@drawable/rename"
/>
<TextView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:text=
"点击编辑按钮即可编辑相应的服务器信息\n比如改昵称等"
android:textSize=
"15sp"
/>
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
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