How to Create a Slider Using ViewPager in Android Studio

  Рет қаралды 101,745

Aws Rh

Aws Rh

Күн бұрын

Пікірлер: 169
@danieli4055
@danieli4055 6 жыл бұрын
this is the channel that has the videos specifically of my needs
@AwsRh
@AwsRh 6 жыл бұрын
great to hear that thnx
@hayesism
@hayesism 6 жыл бұрын
Thank you for this. I was having some trouble understanding other tutorials, but this made it very clear.
@AwsRh
@AwsRh 6 жыл бұрын
great dude
@nikhildhyani365
@nikhildhyani365 6 жыл бұрын
going without liking your video is a "sin". Amazing video like always.
@AwsRh
@AwsRh 6 жыл бұрын
thank you so much for your support dude
@master_kim2023
@master_kim2023 4 жыл бұрын
Wow...!! This is amazing...! Now I finally found out my answers ...great job dude..! You did it..!! I'll share your channel to my groups
@imandafachruddin
@imandafachruddin 6 жыл бұрын
Thanks for sharing this awesome tutorial, this things help me step to design the android welcome screen,
@AwsRh
@AwsRh 6 жыл бұрын
thats mean a lot for me glad i could help thank you so much
@haykmuradyan7281
@haykmuradyan7281 6 жыл бұрын
I like all your videos very much. Keep on the same spirit
@brianhumphrey5620
@brianhumphrey5620 6 жыл бұрын
Respect Mahn you Have very awesome designs
@AwsRh
@AwsRh 6 жыл бұрын
thank you so much
@geniusblue4421
@geniusblue4421 6 жыл бұрын
very simple, easy to understand. Thanks man!!!
@AwsRh
@AwsRh 6 жыл бұрын
thank you my friend, that s mean a lot
@noumanaltaf9107
@noumanaltaf9107 6 жыл бұрын
Thank you for your videos :) you're awesome keep uploading
@AwsRh
@AwsRh 6 жыл бұрын
thank you so much
@DurgasiMuralidhar
@DurgasiMuralidhar 6 жыл бұрын
The way of your work is awsome bro, do more n more videos bro...
@AwsRh
@AwsRh 6 жыл бұрын
thanx dude
@dasaradhsk7256
@dasaradhsk7256 7 жыл бұрын
Amazing Channel... Please do more videos...
@AwsRh
@AwsRh 7 жыл бұрын
i will,thank you so much
@shubhampujari1470
@shubhampujari1470 7 жыл бұрын
Wonderfull was looking for same thanq U have teach me to make much attractive apps
@AwsRh
@AwsRh 7 жыл бұрын
thank you,im glad you like it
@mformobileapps
@mformobileapps 4 жыл бұрын
Great work, HOW DO I PUT THIS ON MY APP IT HAS A SPLASH SCREEN EFFECT AND THEN THE MAIN SCREEN? I want it to appear after the splash screen .
@ridhowahyu9216
@ridhowahyu9216 6 жыл бұрын
youre awesome bro.. it helps me..
@AwsRh
@AwsRh 6 жыл бұрын
Great to hear that
@sheepraider2196
@sheepraider2196 5 жыл бұрын
Perfect video, and thanks for the source code!
@rabiyamoshalo1254
@rabiyamoshalo1254 5 жыл бұрын
works perfect. Thank you for the tutorial
@j4878
@j4878 6 жыл бұрын
Quick question. How do I impement a card slide animation that is triggered on click of button? Same layout on the vid
@SeasonedRice
@SeasonedRice 6 жыл бұрын
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!
@AwsRh
@AwsRh 6 жыл бұрын
hello Ryan Bui, i recommend you to watch this android serie : kzbin.info/aero/PL6gx4Cwl9DGBsvRxJJOzG4r4k_zLKrnxl provided by thenewboston he did a good job explaining the basic of android... i wish you all the luck!
@SeasonedRice
@SeasonedRice 6 жыл бұрын
Thanks!
@RinorBislimi
@RinorBislimi 6 жыл бұрын
How can I add Back and Next buttons to move over slider, and after the slide finishes how to redirect in another activity? Thanks!
@vishrutgoyani8071
@vishrutgoyani8071 6 жыл бұрын
Hey bro...How can I change default Page from viewpager.?? I mean if I want to set 3rd page as my default page. So whenever I will swipe left it will go to 2nd page and when I swipe right it will go to 4th and so on..pls Answer me.
@clwydianuk
@clwydianuk 6 жыл бұрын
Great video. However, is positionate a word?
@diogocostapereira3029
@diogocostapereira3029 6 жыл бұрын
Great!
@AwsRh
@AwsRh 6 жыл бұрын
thanks Diogo
@endritrusiti
@endritrusiti 5 жыл бұрын
Hey bro great work , I want to ask about the Images , how can I do that kind of assets ?
@arjunwalia737
@arjunwalia737 6 жыл бұрын
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
@subrahmanyamabhishekay5871
@subrahmanyamabhishekay5871 6 жыл бұрын
you are amazing bro
@AwsRh
@AwsRh 6 жыл бұрын
thank you my dear
@ArifRahmanHakim1412
@ArifRahmanHakim1412 6 жыл бұрын
Thank you so much (y) i have a question, what if I want to open another activity through swipe up and swipe down to return to the previous activity?
@HAROONKAiNtHiT
@HAROONKAiNtHiT 5 жыл бұрын
Yes i want Ask Same Question..!
@FaisalJavid
@FaisalJavid 4 жыл бұрын
Aws RH i need lil help, i want to change the page(Fragment) of viewPager on click of event. I have implemented calendar and on OnClick event I want to change the page(fragment) on viewPager. When user tap on date I want to change the viewPager.
@FaisalJavid
@FaisalJavid 4 жыл бұрын
how will i do this kindly refer some resource or anything which will help me to perform this task
@friday7510
@friday7510 5 жыл бұрын
God bless you bro
@SamuelHauptmannvanDam
@SamuelHauptmannvanDam 5 жыл бұрын
Loved the tutorial! You might want to make a note for 13:33 that one just needs to write: slidelinearlayout without capetalisation. Most def going to watch the others soon. VERY COOL!
@LobanovSpace
@LobanovSpace 6 жыл бұрын
how to handle click on the picture?
@AwsRh
@AwsRh 6 жыл бұрын
add simple click listener event check your current position on the adapter based on that position add click listener to the imageView
@erickanogs
@erickanogs 7 жыл бұрын
YOU'RE AMAZING!!!!!!!
@AwsRh
@AwsRh 7 жыл бұрын
thanks Ericka :)
@MaciejRzemek
@MaciejRzemek 5 жыл бұрын
Thanks for your tutorial! It's awesome! Could you tell me how can I add links to ImageViews? Lets say I want to make youtube thumbnail with direct link to youtube video. Thanks! :)
@ghaithali7286
@ghaithali7286 5 жыл бұрын
thanks for the guide :)
@iniduniabinatang5964
@iniduniabinatang5964 5 жыл бұрын
hi sir, thanks for the videos, how to display view pager position by button on click in other activity, for example we have 3 button in Activity 1, when we click first button then display first position view pager in Activity2, when we click second button then display second position view pager in Activity2, and when we click third button then display third position view pager in Activity2, thanks for your answer sir.
@aditya3n
@aditya3n 7 жыл бұрын
hi i wanna ask u something, why did u change the layout into linear layout instead of constraint layout? thankyou :)
@AwsRh
@AwsRh 7 жыл бұрын
you can use whatever layout you want, im just not familiar with constraint layout,dont even know how its work xD, i use linearlayout cuz it simple! :D
@aditya3n
@aditya3n 7 жыл бұрын
Aws Rh ahh okay thanks man, waiting for ur next tutorial :D
@Nightlightz-ug1vj
@Nightlightz-ug1vj 7 жыл бұрын
Thanks for another video. But say that I want to use this as my intro for an app. How would I make it so that it appeared only for the 1st time and not reopen after the user is using the app a 2nd+ time?
@AwsRh
@AwsRh 7 жыл бұрын
you may use SharedPreferences to store a boolean value indicating first time launch more details : www.androidhive.info/2016/05/android-build-intro-slider-app/
@jesterallih8389
@jesterallih8389 6 жыл бұрын
Please reply HOW DO I PUT THIS ON MY APP IT HAS A SPLASH SCREEN EFFECT AND THEN THE MAIN SCREEN(With Drawer Layout)? I want it to appear after the splash screen
@parisapiran
@parisapiran 5 жыл бұрын
awsomeeee...helped a lottt !
@sys-radix
@sys-radix 6 жыл бұрын
You're awesome
@AwsRh
@AwsRh 6 жыл бұрын
thnks my friend
@mememind6885
@mememind6885 7 жыл бұрын
Nice video bro..... 👍👍👍👍
@AwsRh
@AwsRh 7 жыл бұрын
your welcome
@joseedwinaramburoquilismal1135
@joseedwinaramburoquilismal1135 6 жыл бұрын
como podría agregar una galería de imágenes en el mismo proyecto? o que me recomiendas hacer?
@earlgrantvillegas4344
@earlgrantvillegas4344 6 жыл бұрын
Wow! by the way can you make a tutorial for json?
@AwsRh
@AwsRh 6 жыл бұрын
yes soon
@treeklive3573
@treeklive3573 6 жыл бұрын
How to add a button to image 4? and that that button redirects to my webview?
@rairairai666
@rairairai666 6 жыл бұрын
i need to know this too.
@M16A3ACOG
@M16A3ACOG 6 жыл бұрын
This way you can only put same elements on every page. You have to make a switch-case with int position (first page is 0!) in public Object instantiateItem(ViewGroup container, int position) and
@murillorosa4151
@murillorosa4151 4 жыл бұрын
thank you !
@bsomeee
@bsomeee 7 жыл бұрын
You are the best!
@AwsRh
@AwsRh 7 жыл бұрын
thank you bsomeee Ali
@Zad_shingiti
@Zad_shingiti 6 жыл бұрын
thank you i do all thing and i have no wrong code in my proj but when i test my app on my mobaile it run and close very speedly can you help me plz
@AwsRh
@AwsRh 6 жыл бұрын
check the logcat also i have upload the source code sample if you wanna check it out github.com/aws1994/Slider
@martingeralde4989
@martingeralde4989 6 жыл бұрын
great job ;) please sir the Source Code ;) thnx
@AwsRh
@AwsRh 6 жыл бұрын
check the description
@emanalaa4674
@emanalaa4674 6 жыл бұрын
great tutorial . But I have haptic tecture for every image but I don't know how to insert it on the scrolling images . Can you please help me
@Entertainingvideosz
@Entertainingvideosz 6 жыл бұрын
how can i add background image i tried but did not work! wonder can you help me?
@conocemaxROC
@conocemaxROC 6 жыл бұрын
Thank you!! very good video How can I put audio in a button on a slider, please if you can help me.
@AwsRh
@AwsRh 6 жыл бұрын
check my drumpad tutorial you can use soundpool or mediaplayer to play sounds
@conocemaxROC
@conocemaxROC 5 жыл бұрын
@@AwsRh Thank you! Another question, do you know why my application does not play the audio on a tablet but on my cell phone if it plays the audio?
@conocemaxROC
@conocemaxROC 5 жыл бұрын
@@AwsRh Please. :(
@sivaprasadav8538
@sivaprasadav8538 5 жыл бұрын
Please make a video in viewpager using firebase for photo and text with realtime database
@rishad7778
@rishad7778 5 жыл бұрын
can you help me by showing how to give the sliding dots it will be very helpful
@walidnoori5811
@walidnoori5811 6 жыл бұрын
#AwsRh Thanks for the video, I got a quick question! How can i display those images in a larger size? tried but did not work, your help would be great :)
@AwsRh
@AwsRh 6 жыл бұрын
change your imageview size in the layout
@amirmb_
@amirmb_ 6 жыл бұрын
It's great tutorial i ever watch. can someone tell me how to add static skip button to main part of the app ?
@NoStupidItsManbearpig
@NoStupidItsManbearpig 6 жыл бұрын
Thank you :)
@julioalvarado1833
@julioalvarado1833 7 жыл бұрын
Wow o.O
@sumeetkrishnan8828
@sumeetkrishnan8828 6 жыл бұрын
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
@AwsRh
@AwsRh 6 жыл бұрын
Use shared preferences to store a local variable
@thundergod530
@thundergod530 6 жыл бұрын
save it on preference
@yoseflopez5141
@yoseflopez5141 6 жыл бұрын
Does this also work for R.layout or can it only be used for R.drawable?
@AwsRh
@AwsRh 6 жыл бұрын
yes its work
@skwallpapers268
@skwallpapers268 7 жыл бұрын
Thanx.......
@AwsRh
@AwsRh 7 жыл бұрын
your are welcome
@SuperEkramkhan
@SuperEkramkhan 7 жыл бұрын
source code please and thanks a lot . we want more. very very helpful
@AwsRh
@AwsRh 7 жыл бұрын
soon :)
@kimkeankoh867
@kimkeankoh867 5 жыл бұрын
It work
@zohaibshah4218
@zohaibshah4218 6 жыл бұрын
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.
@AwsRh
@AwsRh 6 жыл бұрын
didnt understand can you clarify more about ur error
@saqibjalis
@saqibjalis 6 жыл бұрын
can we make buttons on picture
@yournoobuncle
@yournoobuncle 6 жыл бұрын
Can you make a tutorial for auto slide images?
@AwsRh
@AwsRh 6 жыл бұрын
making it right now check the upcoming movies streaming series
@rumajreij5437
@rumajreij5437 6 жыл бұрын
Thanks
@AwsRh
@AwsRh 6 жыл бұрын
@Marcesosa22
@Marcesosa22 6 жыл бұрын
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?
@AwsRh
@AwsRh 6 жыл бұрын
add a simple button to your layout set the visibility to Gone then in the adapter you need to test if the current shown slide is the last slide if so set the visibility to visible
@Marcesosa22
@Marcesosa22 6 жыл бұрын
It worked! thank you very much you have helped me a lot in this video! a hug from Argentina, Posadas-Misiones!
@TechnologyBhakta
@TechnologyBhakta 7 жыл бұрын
How did you set different text color in pager.
@AwsRh
@AwsRh 6 жыл бұрын
i used different colors for the background not for text but you can use the same technique aswell, just define a list of colors as i showed 09:09 then inside instantiateItem method set the background color to the related color 16:05
@TechnologyBhakta
@TechnologyBhakta 6 жыл бұрын
No, you are not getting me. here kzbin.info/www/bejne/iJCkeoivbNl5jKM Title color on each page is different, just before settring tittle color to white. how you did. there is no code related to it.
@geniusblue4421
@geniusblue4421 6 жыл бұрын
So simple. - Step 1: Remove atrribute TEXTCOLOR of textView in slide.xml - Step 2: Add below code in SlideAdapter: //list of text color public int[] lst_textColor={ Color.rgb(26,15,155), Color.rgb(239,8,85), Color.rgb(110,9,89), Color.rgb(1,18,212) }; - Step 3: In "instantiateItem" method, add code: txtTitle.setTextColor(lst_textColor[position]); txtDescription.setTextColor(lst_textColor[position]);
@sys-radix
@sys-radix 6 жыл бұрын
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
@AwsRh
@AwsRh 6 жыл бұрын
yes simply add a button in each layout you can add click event inside the adapter class
@sys-radix
@sys-radix 6 жыл бұрын
You are the best! Thanks man!!!
@feedingmind1042
@feedingmind1042 6 жыл бұрын
Plz do videos on App cloning
@cartermason8985
@cartermason8985 6 жыл бұрын
You don't get enough credit man !!!!!
@AwsRh
@AwsRh 6 жыл бұрын
thanks dude :D
@danielzxc69
@danielzxc69 5 жыл бұрын
how to navigate to another layout using a button?
@AwsRh
@AwsRh 5 жыл бұрын
check my intro screen tutorial
@arjunwalia737
@arjunwalia737 6 жыл бұрын
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
@arjunwalia737
@arjunwalia737 6 жыл бұрын
Bro I'm done with one error now its only showing array required but text view found ....in description.settext(description [position]);
@AwsRh
@AwsRh 6 жыл бұрын
@@arjunwalia737 still got the error ?
@zainali1080
@zainali1080 6 жыл бұрын
kindly provide sourse code please
@sauravsrivastava2459
@sauravsrivastava2459 5 жыл бұрын
R. Layout. Slide in my Slideadapter is not working so please tell me about this error
@muhammadtalal8695
@muhammadtalal8695 4 жыл бұрын
Same error Bro , DID You found the solution ?
@MuhammadHamza-007
@MuhammadHamza-007 5 жыл бұрын
I tried to do it in kotlin and i did it but it is govine me error. kotlin.UninitializedPropertyAccessException: lateinit property inflater has not been initialized at com.mhamza007.gameon.StorySlideAdapter.instantiateItem(StorySlideAdapter.kt:46) Please if you can help me!
@willysalazar1170
@willysalazar1170 6 жыл бұрын
Hello friend please can you make each image have an audio?
@nelsongg347
@nelsongg347 6 жыл бұрын
Hi. I have the exact same code in every java and xml file and it keeps crashing. Any help? Thanks in advance.
@AwsRh
@AwsRh 6 жыл бұрын
+Nelson Gabriel Gonzalez check the logcat and post the error here
@nelsongg347
@nelsongg347 6 жыл бұрын
Thanks accidentally I'd copied the images in the drawable-v24 folder and I was trying to reference them from the plain drawable folder. Thanks again.
@AwsRh
@AwsRh 6 жыл бұрын
@@nelsongg347 your welcome
@funkupgamer5364
@funkupgamer5364 7 жыл бұрын
so the app will start form the main activity ..?
@funkupgamer5364
@funkupgamer5364 7 жыл бұрын
and my swiping is also not working ?
@AwsRh
@AwsRh 7 жыл бұрын
did you follow all the steps ?
@funkupgamer5364
@funkupgamer5364 7 жыл бұрын
yes..!!!
@abdulwahid_mohammed
@abdulwahid_mohammed 7 жыл бұрын
please put a link for the images :bro
@matias20081
@matias20081 6 жыл бұрын
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
@AwsRh
@AwsRh 6 жыл бұрын
your tying to cast view group to an imageView pls recheck your code
@matias20081
@matias20081 6 жыл бұрын
I was being dumb. My textviews were inside the image tag. Thanks for the quick response anyway. Your video helped me a ton
@saikrishnauchiha1218
@saikrishnauchiha1218 6 жыл бұрын
how do I add A button at the last slide to start another activity
@AwsRh
@AwsRh 6 жыл бұрын
add a simple button to your layout set the visibility to Gone then in the adapter you need to test if the current shown slide is the last slide if so set the visibility to visible
@polojoser
@polojoser 6 жыл бұрын
Nice ! please put a link source code ? Thanks !
@IMateme
@IMateme 6 жыл бұрын
Please add kotlin code..thanks
@JoaoPaulo-po8gx
@JoaoPaulo-po8gx 7 жыл бұрын
Hello Dude, nice tutorial, helped me a lot of. I wrote the code according to the tutorial, if anyone needs or you do not want to rewrite it, just get it in my git repository. Source Code: github.com/joaopaulojpos/Slide please disregard some minimal comments in the code, as it is written in portuguese from brazil.
@AwsRh
@AwsRh 7 жыл бұрын
sry dude,i didnt understand you
@JoaoPaulo-po8gx
@JoaoPaulo-po8gx 7 жыл бұрын
Hello, I edited the commentary, I think now you will understand
@kakkiripokkiri417
@kakkiripokkiri417 6 жыл бұрын
why (R.image is not coming)
@NoStupidItsManbearpig
@NoStupidItsManbearpig 6 жыл бұрын
try findViewById (R.drawable.image);
@e-tech7509
@e-tech7509 6 жыл бұрын
how to solve "unfortunately stopped" bro
@AwsRh
@AwsRh 6 жыл бұрын
check your logcat and post the log error here
@Nurtastube
@Nurtastube 6 жыл бұрын
Why is it so hard to implement?
@Shahzebkhan-mp3fp
@Shahzebkhan-mp3fp 7 жыл бұрын
Please Upload Source Code Too :)
@AwsRh
@AwsRh 7 жыл бұрын
soon!
@AwsRh
@AwsRh 6 жыл бұрын
github.com/aws1994/Slider
@shrobot9735
@shrobot9735 6 жыл бұрын
Source Code please
@AwsRh
@AwsRh 6 жыл бұрын
github.com/aws1994/Slider
Material Home Page Design  (Dashboard) in android studio
18:41
啊?就这么水灵灵的穿上了?
00:18
一航1
Рет қаралды 114 МЛН
ПРЯМОЙ ЭФИР. Золотой мяч France Football 2024
4:41:06
Family Love #funny #sigma
00:16
CRAZY GREAPA
Рет қаралды 25 МЛН
Friends make memories together part 2  | Trà Đặng #short #bestfriend #bff #tiktok
00:18
Welcome screen with upToDown animation in android studio
23:27
Splash Screen with Transition Animation in Android Studio
16:53
Creating and Designing a Navigation Drawer in Android Studio
20:09
Modern Login Screen Design in Android Studio
14:10
Aws Rh
Рет қаралды 81 М.
Card List UI Design | Android Studio Tutorial
33:06
Aws Rh
Рет қаралды 65 М.
Android Studio Tutorial - Splash Screen Animation
17:14
Angga Risky
Рет қаралды 143 М.
Login screen from Photoshop to Android Studio
37:56
SomTea Codes
Рет қаралды 203 М.
啊?就这么水灵灵的穿上了?
00:18
一航1
Рет қаралды 114 МЛН