mirror of
https://github.com/atsunatsu/Look4Sat.git
synced 2026-10-04 11:37:22 +00:00
Finished splash activity and UI
This commit is contained in:
1 parent
e524a62b77
commit
b91a7c1ff8
15 files changed
+196
-83
No files matched your search
@@ -16,7 +16,7 @@ import javax.inject.Inject
|
||||
@AndroidEntryPoint
|
||||
class SplashActivity : FragmentActivity() {
|
||||
|
||||
private val pagesCount = 3
|
||||
private val pagesCount = 2
|
||||
|
||||
@Inject
|
||||
lateinit var prefsManager: PrefsManager
|
||||
@@ -41,7 +41,7 @@ class SplashActivity : FragmentActivity() {
|
||||
}
|
||||
}
|
||||
})
|
||||
// isUserInputEnabled = false
|
||||
isUserInputEnabled = false
|
||||
}
|
||||
splashNext.setOnClickListener {
|
||||
if (splashPager.currentItem < pagesCount - 1) splashPager.currentItem++
|
||||
@@ -62,10 +62,9 @@ class SplashActivity : FragmentActivity() {
|
||||
|
||||
override fun createFragment(position: Int): Fragment {
|
||||
return when (position) {
|
||||
0 -> FirstFragment()
|
||||
1 -> SecondFragment()
|
||||
2 -> ThirdFragment()
|
||||
else -> FirstFragment()
|
||||
0 -> SplashTleFragment()
|
||||
1 -> SplashPosFragment()
|
||||
else -> SplashTleFragment()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@ package com.rtbishop.look4sat.ui.splash
|
||||
import androidx.fragment.app.Fragment
|
||||
import com.rtbishop.look4sat.R
|
||||
|
||||
class SecondFragment: Fragment(R.layout.fragment_second)
|
||||
class SplashPosFragment : Fragment(R.layout.fragment_splash_pos)
|
||||
+1
-1
@@ -3,4 +3,4 @@ package com.rtbishop.look4sat.ui.splash
|
||||
import androidx.fragment.app.Fragment
|
||||
import com.rtbishop.look4sat.R
|
||||
|
||||
class FirstFragment : Fragment(R.layout.fragment_first)
|
||||
class SplashTleFragment: Fragment(R.layout.fragment_splash_tle)
|
||||
@@ -1,6 +0,0 @@
|
||||
package com.rtbishop.look4sat.ui.splash
|
||||
|
||||
import androidx.fragment.app.Fragment
|
||||
import com.rtbishop.look4sat.R
|
||||
|
||||
class ThirdFragment : Fragment(R.layout.fragment_third)
|
||||
Reference in new issue
Block a user