Skip to content

How to use custom views of the layout. #1009

Answered by cortinico
Usama99786 asked this question in Q&A
Discussion options

You must be logged in to vote

Yes that's doable. You'll have to create your own AppIntroBase subclass:

abstract class AppIntro2 : AppIntroBase() {
override val layoutId = R.layout.appintro_intro_layout2

Your class will have to expose an layoutId that will be used by AppIntro to populate the layout.
You'll also have to make sure the IDs of your views are the same as app_intro_layout.

I'd suggest you copy over this file and start over from there customizing your setup:
https://github.com/AppIntro/AppIntro/blob/main/appintro/src/main/res/layout/appintro_intro_layout.xml

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
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