신기성

splash scale test0

......@@ -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)
......
......@@ -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)
......
......@@ -20,11 +20,11 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0"
android:orientation="horizontal">
android:orientation="vertical">
<Button
android:id="@+id/buttonGotIt"
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="70dp"
android:layout_weight="1"
android:background="#FF29ABE2"
......