tags:

views:

75

answers:

1

I have a Gallery which contains text values such as Movie, Music, Games, Magazine, etc. My problem is, I want to display separators across the Element.

For instance, there must be a separator between Movie and Games.

How can I do this?

Thanks in advance,

Tilsan

A: 

I would suggest that you create separate TextView elements that sit inside a RelativeLayout. Have the text views and the relative layout the same height, but put some margin between the text views on the horizontal axis. You can then apply a background color to both the text views and the relative layout and the color that shows through the gap of the text view (created by the margins) would create the vertical separators that you are trying to produce. You can also make TextViews clickable. http://developer.android.com/reference/android/widget/TextView.html

Adriaan
and http://developer.android.com/reference/android/widget/RelativeLayout.html
Adriaan
Hello can u post the sample code regarding this frnd.....
Tilsan The Fighter
Can u tell me how to put margin between text views
Tilsan The Fighter
I would suggest you read this and do some trial and error which will help you learn to use the platform more independently than having everyone give you the answer to the same questions you have posted across this user forum.http://developer.android.com/guide/topics/ui/layout-objects.html
Adriaan