How to use custom views of the layout. #1009
-
|
I want to navigate through the slides using my own custom views .i.e buttons etc. I want to hide the default next button and use my own views. Is there a way to do that? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Yes that's doable. You'll have to create your own AppIntro/appintro/src/main/java/com/github/appintro/AppIntro2.kt Lines 12 to 14 in e635ec9 Your class will have to expose an I'd suggest you copy over this file and start over from there customizing your setup: |
Beta Was this translation helpful? Give feedback.
-
|
@Usama99786 were you able to achieve custom views? If yes, could you provide some snippets for my reference? Thank you! |
Beta Was this translation helpful? Give feedback.
Yes that's doable. You'll have to create your own
AppIntroBasesubclass:AppIntro/appintro/src/main/java/com/github/appintro/AppIntro2.kt
Lines 12 to 14 in e635ec9
Your class will have to expose an
layoutIdthat 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