tags:

views:

28

answers:

2

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

Thanks in advance.

+1  A: 

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.

Praveen Chandrasekaran
+1,thanks for your answer.
MGSenthil
+1  A: 

I would modify Praveen's answer a bit:

<LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal">
    <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" />
    <Gallery android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1"/>
    <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>

android:layout_weight="1" in is very important here.

radek-k
thanks for your answer.
MGSenthil