Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RvApp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lify
RvApp
Commits
a06203d5
Commit
a06203d5
authored
Aug 09, 2019
by
jianglx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
引导页添加跳过按钮
parent
7bf082c7
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
1 deletion
+27
-1
build.gradle
RvClient/build.gradle
+1
-1
GuideActivity.java
RvClient/src/main/java/com/xxfc/rv/GuideActivity.java
+8
-0
ic_guide_skip.xml
RvClient/src/main/res/drawable/ic_guide_skip.xml
+8
-0
activity_guide.xml
RvClient/src/main/res/layout/activity_guide.xml
+10
-0
No files found.
RvClient/build.gradle
View file @
a06203d5
...
@@ -57,7 +57,7 @@ android {
...
@@ -57,7 +57,7 @@ android {
variant
.
outputs
.
all
{
variant
.
outputs
.
all
{
if
(
variant
.
buildType
.
name
==
'release'
)
{
if
(
variant
.
buildType
.
name
==
'release'
)
{
def
productVersion
=
"Rv"
+
releaseTime
()
+
"V"
+
defaultConfig
.
versionName
+
"_Release_"
+
productFlavors
[
0
].
name
+
".apk"
;
def
productVersion
=
"Rv"
+
releaseTime
()
+
"V"
+
defaultConfig
.
versionName
+
"_Release_"
+
productFlavors
[
0
].
name
+
".apk"
;
outputFileName
=
productVersion
outputFileName
=
productVersion
}
}
}
}
...
...
RvClient/src/main/java/com/xxfc/rv/GuideActivity.java
View file @
a06203d5
...
@@ -8,6 +8,7 @@ import android.support.v4.view.ViewPager;
...
@@ -8,6 +8,7 @@ import android.support.v4.view.ViewPager;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.view.View
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.view.ViewGroup
;
import
android.widget.Button
;
import
android.widget.ImageView
;
import
android.widget.ImageView
;
import
com.ruiwenliu.wrapper.adapter.TabAdapter
;
import
com.ruiwenliu.wrapper.adapter.TabAdapter
;
...
@@ -34,6 +35,7 @@ public class GuideActivity extends BaseActivity<CommonPresenter> {
...
@@ -34,6 +35,7 @@ public class GuideActivity extends BaseActivity<CommonPresenter> {
private
ViewPager
viewPager
;
private
ViewPager
viewPager
;
private
ImageView
imgSelect
;
private
ImageView
imgSelect
;
private
Button
btnSkip
;
private
int
[]
poits
=
{
private
int
[]
poits
=
{
R
.
drawable
.
icon_guide_circle1
,
R
.
drawable
.
icon_guide_circle1
,
R
.
drawable
.
icon_guide_circle2
,
R
.
drawable
.
icon_guide_circle2
,
...
@@ -55,6 +57,7 @@ public class GuideActivity extends BaseActivity<CommonPresenter> {
...
@@ -55,6 +57,7 @@ public class GuideActivity extends BaseActivity<CommonPresenter> {
titleView
.
setVisibility
(
View
.
GONE
);
titleView
.
setVisibility
(
View
.
GONE
);
viewPager
=
findViewById
(
R
.
id
.
viewpager
);
viewPager
=
findViewById
(
R
.
id
.
viewpager
);
imgSelect
=
findViewById
(
R
.
id
.
img_select
);
imgSelect
=
findViewById
(
R
.
id
.
img_select
);
btnSkip
=
findViewById
(
R
.
id
.
btn_skip
);
TabAdapter
mAdapter
=
new
TabAdapter
(
getSupportFragmentManager
(),
getListFragment
());
TabAdapter
mAdapter
=
new
TabAdapter
(
getSupportFragmentManager
(),
getListFragment
());
viewPager
.
setOffscreenPageLimit
(
4
);
viewPager
.
setOffscreenPageLimit
(
4
);
viewPager
.
setAdapter
(
mAdapter
);
viewPager
.
setAdapter
(
mAdapter
);
...
@@ -76,6 +79,11 @@ public class GuideActivity extends BaseActivity<CommonPresenter> {
...
@@ -76,6 +79,11 @@ public class GuideActivity extends BaseActivity<CommonPresenter> {
}
}
});
});
btnSkip
.
setOnClickListener
(
v
->
{
mPresenter
.
getView
().
onShowLoading
();
startActivity
(
MainActivity
.
getIntent
(
GuideActivity
.
this
));
finish
();
});
}
}
@Override
@Override
...
...
RvClient/src/main/res/drawable/ic_guide_skip.xml
0 → 100644
View file @
a06203d5
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
<stroke
android:width=
"1px"
android:color=
"#666666"
/>
<corners
android:radius=
"@dimen/size_20"
/>
</shape>
\ No newline at end of file
RvClient/src/main/res/layout/activity_guide.xml
View file @
a06203d5
...
@@ -11,6 +11,16 @@
...
@@ -11,6 +11,16 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
/>
android:layout_height=
"match_parent"
/>
<Button
android:id=
"@+id/btn_skip"
android:layout_width=
"@dimen/size_70"
android:layout_height=
"@dimen/size_28"
android:layout_gravity=
"top|right"
android:layout_marginTop=
"@dimen/size_20"
android:layout_marginRight=
"20dp"
android:background=
"@drawable/ic_guide_skip"
android:text=
"跳过"
android:textColor=
"#666666"
/>
<ImageView
<ImageView
android:id=
"@+id/img_select"
android:id=
"@+id/img_select"
...
...
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