Intro Screen Slider Android Tutorial – Make Introduction Slider for Your App

Hi there, In this tutorial, I am gonna teach you how you can  create an introductory slide show for your android application. The point to ponder about this task is that the slide show must …

screen slider android

Hi there, In this tutorial, I am gonna teach you how you can  create an introductory slide show for your android application. The point to ponder about this task is that the slide show must run just for once after the installation. From the second time, the app must open with  some home screen. So lets begin our Intro Screen Slider Android Tutorial.

Intro Screen Slider Android Tutorial

Creating a New Android Studio Project

  • First create a new project. You can do the same in your existing application.
  • I just created a project named AppIntro.

Adding AppIntro dependency

  • In this Screen Slider Android Tutorial we will be using AppIntro library.
  • So the first thing we need to add this library into our project. For this just go to your app level build.gradle file and add the following line inside dependencies block and then just sync your project.

Creating a Fragment to Show Different Slides

  • Next, we need to create a class named SampleSlide.java  through which the view of different slides is inflated.

Creating Intro Screen Sliders

  • Next, we need to create  a class named DefaultIntro.java.

  • Next, we need to create a class named Config.java to store constants.

  • Next, we need to configure our MainActivity.java. In order to make sure that the appintro runs just for once, we make use of Thread and SharedPreferences as it can be seen down into the code of MainActivity.

Here, the Java part gets over. Now, we need to configure our design resources i.e. xml layouts.

Creating Layouts for Slider

  • Create a Layout resource file named  intro.xml. This would be our first slide in the introduction.

screen slider android
Preview of intro.xml

  • Create a layout resource file named intro2.xml which would be our second slide.

screen slider android
Preview of intro2.xml

  • By now, you might come across errors saying the resources such as drawbles not found. Leave it for now. I’ll deal with the same at the end.
  • Create a layout resource file named intro3.xml. This would be our third slide.

screen slider android
Preview of intro3.xml

  • Create a layout resoure file named intro4.xml which would be our fourth and final slide.

screen slider android
Preview of intro4.xml

  • We are almost done. Just add this theme into your style resource file as follows

  • Now,  we need some icons and drawables resource files to be added to the drawables . Download the zip below and then  add  all its content to the drawables.

[download id=”3228″ template=”icons”]

  • Finally, mention DefaultIntro.java as an activity in your manifest as follows:-

  • Yeah, you have done it. Run the app and Enjoy:)
  • If you still find some problem, download the source code below and help yourself or let me know in the comments section.

[sociallocker id=1372] Intro Screen Slider Android Tutorial [/sociallocker]

Hello, I am Manish Kumar. I am a B.Tech Student at NIT Jamshedpur. Fortunately, I find myself quite passionate about Computers and Technology. Android is my most recent Crush.

Expand Your Knowledge: Next Tutorial Picks

0 0 votes
Article Rating
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x