Skip to content
\n
\n \n\n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n \n \n \n \n
class CustomLayoutIntro : AppIntro() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
addSlide(newInstance(R.layout.intro_custom_layout1))
addSlide(newInstance(R.layout.intro_custom_layout2))
addSlide(newInstance(R.layout.intro_custom_layout3))
addSlide(newInstance(R.layout.intro_custom_layout4))
showStatusBar(true)
setStatusBarColorRes(R.color.orange)
setNavBarColorRes(R.color.orange)
setProgressIndicator()
}
\n
\n
\n

\n
\n

addSlide(AppIntroCustomLayoutFragment.newInstance(R.layout.activity_one));
\nthat causes crash

\n
\n

Which crash?

","upvoteCount":1,"url":"https://GitHub.com/AppIntro/AppIntro/discussions/1018#discussioncomment-3347592"}}}
Discussion options

You must be logged in to vote

Please find an example here:

class CustomLayoutIntro : AppIntro() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
addSlide(newInstance(R.layout.intro_custom_layout1))
addSlide(newInstance(R.layout.intro_custom_layout2))
addSlide(newInstance(R.layout.intro_custom_layout3))
addSlide(newInstance(R.layout.intro_custom_layout4))
showStatusBar(true)
setStatusBarColorRes(R.color.orange)
setNavBarColorRes(R.color.orange)
setProgressIndicator()
}

addSlide(AppIn…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Maldino
Comment options

Answer selected by cortinico
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants