Search code examples
androidandroid-gallery

How to set images at the ends of Gallery view(right and left)


I need help on placing images(back and forward images) at two ends of my gallery view. I have a gallery to list menus to scroll horizontally, and this gallery is in RelativeLayout how can I get the images at two ends of the gallery without scrolling.

Thanks in advance.


Solution

  • answer is in your question itself. put to imageview on both sides. the sample layout looks like below

    <LinearLayout>
        <ImageView....../>
        <Gallery .../>
        <ImageView .../>
    </LinearLayout>
    

    Hope it helps.