How to Create a Slider Using ViewPager in Android Studio

#android, #app_android, #android_games, #datsfree.info



hello Guys and welcome back to another android tutorial in this video we going to design and create a screens slider in android studio. Please like and subscribe to support the channel thank…

READ  Como reseta seu celular Samsung gran prime


source

Bookmark the permalink.

34 Comments

  1. Bro im having 2 errors
    Error: array required,but textview found……thi is for the line description.settext(description [position]);
    And the second one is
    Container.remove AllViews((linear layout)object); in this it is saying that removeallviews() in view group cannot be applied to (android.widget.LinearLayout).
    Please help me dude i have a major project to give tomorrow

  2. Bro the last line in Slide Adapter.java ((LinearLayout)object); it is saying that this viewgroup cannot be applied to android.widget.linearlayout please help me

  3. why (R.image is not coming)

  4. It's great tutorial i ever watch. can someone tell me how to add static skip button to main part of the app ?

  5. Plz do videos on App cloning

  6. great job 😉 please sir the Source Code 😉 thnx

  7. how do I add A button at the last slide to start another activity

  8. Hello! I did it with my second activity, that is, when I start my app, an activity is executed with a show button, when you click, the activity of the video opens, that is, the activity is opened with the slider. But I need you to have a button on the last slider to be able to exit or open a third activity! How do I do it?

  9. Nice ! please put a link source code ? Thanks !

  10. this is the channel that has the videos specifically of my needs

  11. Please add kotlin code..thanks

  12. How to make online movie apps??

  13. Bro what if i want to show this slider for the new user only once… ( when he uses the app for the first time) and next time he opens this should not be shown.. Like some apps u may have seen… Any idea ?how to implement that

  14. youre awesome bro..
    it helps me..

  15. Wow! by the way can you make a tutorial for json?

  16. I like all your videos very much. Keep on the same spirit

  17. Hi. I have the exact same code in every java and xml file and it keeps crashing. Any help? Thanks in advance.

  18. Hi, he followed the tutorial from the beginning to the end, but it does not work. Can you help me?

    These are the errors that it gives:

    E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.example.franc.slide, PID: 6359
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.franc.slide/com.example.franc.slide.MainActivity}: android.view.InflateException: Binary XML file line #0: Binary XML file line #0: Error inflating class LinearLayoutt
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
    at android.app.ActivityThread.-wrap11(ActivityThread.java)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:148)
    at android.app.ActivityThread.main(ActivityThread.java:5417)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
    Caused by: android.view.InflateException: Binary XML file line #0: Binary XML file line #0: Error inflating class LinearLayoutt
    at android.view.LayoutInflater.inflate(LayoutInflater.java:539)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
    at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:287)
    at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139)
    at com.example.franc.slide.MainActivity.onCreate(MainActivity.java:16)
    at android.app.Activity.performCreate(Activity.java:6237)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476) 
    at android.app.ActivityThread.-wrap11(ActivityThread.java) 
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344) 
    at android.os.Handler.dispatchMessage(Handler.java:102) 
    at android.os.Looper.loop(Looper.java:148) 
    at android.app.ActivityThread.main(ActivityThread.java:5417) 
    at java.lang.reflect.Method.invoke(Native Method) 
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 
    Caused by: android.view.InflateException: Binary XML file line #0: Error inflating class LinearLayoutt
    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:776)
    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:423) 
    at android.view.LayoutInflater.inflate(LayoutInflater.java:374) 
    at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:287) 
    at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139) 
    at com.example.franc.slide.MainActivity.onCreate(MainActivity.java:16) 
    at android.app.Activity.performCreate(Activity.java:6237) 
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107) 
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369) 
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476) 
    at android.app.ActivityThread.-wrap11(ActivityThread.java) 
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344) 
    at android.os.Handler.dispatchMessage(Handler.java:102) 
    at android.os.Looper.loop(Looper.java:148) 
    at android.app.ActivityThread.main(ActivityThread.java:5417) 
    at java.lang.reflect.Method.invoke(Native Method) 
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 
    Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.LinearLayoutt" on path: DexPathList[[zip file "/data/app/com.example.franc.slide-2/base.apk", zip file "/data/app/com.example.franc.slide-2/split_lib_dependencies_apk.apk", zip file "/data/app/com.example.franc.slide-2/split_lib_slice_0_apk.apk", zip file "/data/app/com.example.franc.slide-2/split_lib_slice_1_apk.apk", zip file "/data/app/com.example.franc.slide-2/split_lib_slice_2_apk.apk", zip file "/data/app/com.example.franc.slide-2/split_lib_slice_3_apk.apk", zip file "/data/app/com.example.franc.slide-2/split_lib_slice_4_apk.apk", zip file "/data/app/com.example.franc.slide-2/split_lib_slice_5_apk.apk", zip file "/data/app/com.example.franc.slide-2/split_lib_slice_6_apk.apk", zip file "/data/app/com.example.franc.slide-2/split_lib_slice_7_apk.apk", zip file "/data/app/com.example.franc.slide-2/split_lib_slice_8_apk.apk", zip file "/data/app/com.example.franc.slide-2/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.example.franc.slide-2/lib/x86, /vendor/lib, /system/lib]]
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
    at android.view.LayoutInflater.createView(LayoutInflater.java:583)
    at android.view.LayoutInflater.onCreateView(LayoutInflater.java:677)
    at com.android.internal.policy.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:68)
    at android.view.LayoutInflater.onCreateView(LayoutInflater.java:694)
    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:762)
    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704) 
    at android.view.LayoutInflater.inflate(LayoutInflater.java:492) 
    at android.view.LayoutInflater.inflate(LayoutInflater.java:423) 
    at android.view.LayoutInflater.inflate(LayoutInflater.java:374) 
    at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:287) 
    at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139) 
    at com.example.franc.slide.MainActivity.onCreate(MainActivity.java:16) 
    at android.app.Activity.performCreate(Activity.java:6237) 
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107) 
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369) 
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476) 
    at android.app.ActivityThread.-wrap11(ActivityThread.java) 
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344) 
    at android.os.Handler.dispatchMessage(Handler.java:102) 
    at android.os.Looper.loop(Looper.java:148) 
    at android.app.ActivityThread.main(ActivityThread.java:5417) 
    at java.lang.reflect.Method.invoke(Native Method) 
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 
    Suppressed: java.lang.ClassNotFoundException: android.view.LinearLayoutt
    at java.lang.Class.classForName(Native Method)
    at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
    at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
    at java.lang.ClassLoader.load

  19. Hy Bhi,
    i have an error in main java file,

    viewPager = (ViewPager) findViewById(R.id.viewpager); (R.id.viewpager) ismay jo viewpager red ho raha,

    Let me know what the actual problem.?
    thanks advance.

  20. Hi, i'm having the following exception: java.lang.ClassCastException: android.support.v7.widget.AppCompatImageView cannot be cast to android.view.ViewGroup. Do you know why? Thanks in advance

  21. Can we add to this slide a button in each of thease slides and each one of them do a action ?? if yes please tell me how ??
    THNX MAN

  22. thanks for this video… can you post a video for Firebase

  23. Hey your videos are really nice! I'm still trying to learn how to make android apps, do you know where I can begin? I have a basic understanding of Java already, but I don't know how to use android studio. Thanks!

  24. Thanks for sharing this awesome tutorial,
    this things help me step to design the android welcome screen,

  25. Quick question. How do I impement a card slide animation that is triggered on click of button? Same layout on the vid

  26. You don't get enough credit man !!!!!

  27. very simple, easy to understand. Thanks man!!!

Leave a Reply

Your email address will not be published. Required fields are marked *

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