| \n | class CustomLayoutIntro : AppIntro() { | \n
| \n | override fun onCreate(savedInstanceState: Bundle?) { | \n
| \n | super.onCreate(savedInstanceState) | \n
| \n | \n |
| \n | addSlide(newInstance(R.layout.intro_custom_layout1)) | \n
| \n | addSlide(newInstance(R.layout.intro_custom_layout2)) | \n
| \n | addSlide(newInstance(R.layout.intro_custom_layout3)) | \n
| \n | addSlide(newInstance(R.layout.intro_custom_layout4)) | \n
| \n | \n |
| \n | showStatusBar(true) | \n
| \n | setStatusBarColorRes(R.color.orange) | \n
| \n | setNavBarColorRes(R.color.orange) | \n
| \n | setProgressIndicator() | \n
| \n | } | \n
\n\naddSlide(AppIntroCustomLayoutFragment.newInstance(R.layout.activity_one));
\n
\nthat causes crash
Which crash?
","upvoteCount":1,"url":"https://GitHub.com/AppIntro/AppIntro/discussions/1018#discussioncomment-3347592"}}}-
|
Hello, I am new and want to add a custom slide .. I tried both of that
that causes crash
that code show no thing |
Beta Was this translation helpful? Give feedback.
-
|
Please find an example here:
Which crash? |
Beta Was this translation helpful? Give feedback.
Please find an example here:
AppIntro/example/src/main/java/com/github/appintro/example/ui/custom/CustomLayoutIntro.kt
Lines 9 to 22 in 0b782db