Toggle navigation
Toggle navigation
This project
Loading...
Sign in
장연우
/
WELLO
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
신기성
2019-11-19 14:09:25 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5e182750a76539035edbd9c9e0fc33b5c96b2928
5e182750
1 parent
f953f94b
splash scale test0
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
11 additions
and
10 deletions
vip/app/src/main/java/com/example/vip/ViewPagerAdapter.kt
vip/app/src/main/java/com/example/vip/WelcomeViewPagerAdapter.kt
vip/app/src/main/res/drawable-xxxhdpi/onboarding1.png
vip/app/src/main/res/drawable-xxxhdpi/onboarding2.png
vip/app/src/main/res/drawable-xxxhdpi/onboarding3.png
vip/app/src/main/res/drawable-xxxhdpi/onboarding4.png
vip/app/src/main/res/drawable-xxxhdpi/onboarding5.png
vip/app/src/main/res/layout/activity_welcome.xml
vip/app/src/main/java/com/example/vip/ViewPagerAdapter.kt
View file @
5e18275
...
...
@@ -31,8 +31,9 @@ class ViewPagerAdapter(private val context : Context) : PagerAdapter() {
layoutInflater
=
context
.
getSystemService
(
Context
.
LAYOUT_INFLATER_SERVICE
)
as
LayoutInflater
val
v
=
layoutInflater
!!
.
inflate
(
R
.
layout
.
viewpager_activity
,
null
)
val
image
=
v
.
findViewById
<
View
>(
R
.
id
.
imageview
)
as
ImageView
image
.
setBackgroundResource
(
Image
[
position
])
image
.
setImageResource
(
Image
[
position
])
//
image.setImageResource(Image[position])
val
vp
=
container
as
ViewPager
vp
.
addView
(
v
,
0
)
...
...
vip/app/src/main/java/com/example/vip/WelcomeViewPagerAdapter.kt
View file @
5e18275
...
...
@@ -12,11 +12,11 @@ class WelcomeViewPagerAdapter(private val context : Context) : PagerAdapter() {
private
var
layoutInflater
:
LayoutInflater
?
=
null
val
Image
=
arrayOf
(
R
.
drawable
.
onboarding
_
1
,
R
.
drawable
.
onboarding
_
2
,
R
.
drawable
.
onboarding
_
3
,
R
.
drawable
.
onboarding
_
4
,
R
.
drawable
.
onboarding
_
5
R
.
drawable
.
onboarding1
,
R
.
drawable
.
onboarding2
,
R
.
drawable
.
onboarding3
,
R
.
drawable
.
onboarding4
,
R
.
drawable
.
onboarding5
)
...
...
@@ -33,8 +33,8 @@ class WelcomeViewPagerAdapter(private val context : Context) : PagerAdapter() {
layoutInflater
=
context
.
getSystemService
(
Context
.
LAYOUT_INFLATER_SERVICE
)
as
LayoutInflater
val
v
=
layoutInflater
!!
.
inflate
(
R
.
layout
.
welcomeviewpager_activity
,
null
)
val
image
=
v
.
findViewById
<
View
>(
R
.
id
.
imageview
)
as
ImageView
image
.
setImageResource
(
Image
[
position
])
image
.
setBackgroundResource
(
Image
[
position
])
//
image.setImageResource(Image[position])
val
vp
=
container
as
ViewPager
vp
.
addView
(
v
,
0
)
...
...
vip/app/src/main/res/drawable-xxxhdpi/onboarding1.png
0 → 100644
View file @
5e18275
89.5 KB
vip/app/src/main/res/drawable-xxxhdpi/onboarding2.png
0 → 100644
View file @
5e18275
156 KB
vip/app/src/main/res/drawable-xxxhdpi/onboarding3.png
0 → 100644
View file @
5e18275
195 KB
vip/app/src/main/res/drawable-xxxhdpi/onboarding4.png
0 → 100644
View file @
5e18275
192 KB
vip/app/src/main/res/drawable-xxxhdpi/onboarding5.png
0 → 100644
View file @
5e18275
287 KB
vip/app/src/main/res/layout/activity_welcome.xml
View file @
5e18275
...
...
@@ -20,11 +20,11 @@
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_weight=
"0"
android:orientation=
"
horizont
al"
>
android:orientation=
"
vertic
al"
>
<Button
android:id=
"@+id/buttonGotIt"
android:layout_width=
"
wrap_cont
ent"
android:layout_width=
"
match_par
ent"
android:layout_height=
"70dp"
android:layout_weight=
"1"
android:background=
"#FF29ABE2"
...
...
Please
register
or
login
to post a comment