In this video we will use the ViewPager widget together with the Picasso image loading library to create an image slider that loads it’s images from the web. For this we will create a PagerAdapter and override the getCount, instantiateItem, isViewFromObject and destroyItem methods. We will then dynamically create ImageViews and add them as pages to our ViewPager. Into these ImageViews we load the images from URLs we store in a string array with help of Picasso.
Example code, GitHub link, instructions etc:
____________________
❗ Subscribe to the channel:
⏯ Watch more tutorials:
⭐ Become a channel member for exclusive tutorials and other perks:
㊙ Help translating the videos:
💚 Support the content:
💬 Join the Discord chat:
🎧 Audiobooks and podcasts for programmers:
👶 How to get started with Android development:
📣 Follow Coding in Flow on social media:
Facebook:
Instagram:
Twitter:
Blog:
Nguồn: https://midlandlangarseva.com/
Xem thêm bài viết khác: https://midlandlangarseva.com/cong-nghe/
my app keeps stopping ,please help…..
My app keeps crashing for some reason :///
I can't find ViewPager when I type everything exactly as you did in the XML file at the beginning! What is the problem??
I'm new to Android Studio and I was wondering if it would be possible to have a GridLayout with Images whom you can click on and then swipe through with the ViewPager (with Picasso), something like the typical gallery on our phones???
update this tutorial using ViewPager2
How you got to learn lot of thing?
It shows the following error:
Cannot resolve class android.support.v4.view.ViewPager
The hint is to add that same dependency, but when i do that, the error is still there
Its not working for me.First page is blank
ço ari biurufol
Thank you great video. Did anyone play this video with subtitles?
hello my friend ( so how do we make these pictures automatically ) I would be glad if you answer
nice video
How do I make it zoom?
please relaunching with ViewPager2.
Thanx so much that was so helpful
How to make add to favourite button and show on the favourite list
Nice work
but i have question please how i can start at position 10 for example not from the 0
help i dont have the support.v4.view.ViewPager from 0:59
i have this
androidx.viewpager.widget.ViewPager
Thank you !! it is great information for me !! 🙂
I have one question. How do you zoom this?
thanks a lot
Exactly i was looking for!
Hello my app is launching real good but the images are not showing …. i have added all the dependencies and permission if some one can help me it will be life saving…
How can I set the current image, as wallpaper?
thanx man .. awesome work .. great explanation
how can we add share option in image? Ive done in XML, I need help for code.
Very useful tutorial ,Thanks for sharing your knowledge and Good Luck
How can we do to autoplay sound in every switch images? Thanks!
Nice tutorial with perfect presentation 👍
Sir plz make a video in this topic
"Continuous Shared Element Transitions: RecyclerView to ViewPager"
https://android-developers.googleblog.com/2018/02/continuous-shared-element-transitions.html?m=1
Plz sir I need help
how to add next, prev buttons in this?
Error is showing while adding latest dependency
Very good explanation. How do I load images dynamically using JSON in imageUrls
I'm retrieving Images from firebase into viewpager there is no error but images are not coming into view my firebase has image links and it is correctly retrieving into the app(I have checked through logcat) is there something I'm missing.
if anyone can solve this it would be a great help