Search code examples
androidandroid-widgetwidgetandroid-galleryandroid-photos

How to create a gallery widget with my custom application images for Android


I would like to create a widget for my application. I want it to be like the default gallery widget or Youtube widget where users can scroll through the stack of card. I have some custom images in my application. I want to display these custom images and let the user scroll through it. When he click on the image I want to take him to the application.

Is there any kind of library or any code sample which I can use to do this. Please let me know any information that would be helpful for me. Thank you for your time and efforts.

enter image description here


Solution

  • The functionality which you want can be achieved by using the StackView feature. Here I am providing you some links check out , it will help you definately.
    Links:
    1) StackView1
    2) StackView 2
    3) StackWidget