Views inside relative layout are getting out the layout.

I applied circular shape (oval) to the relative layout in my axml page. so for that i need to give certain color in my shape mark up. so if i apply the same shape to other control am getting the same color. is there any provision to change the color of the oval for different control ?
in order to overcome this i did some trick but it wont work for me. here is the detail notes of what i have done.

RelativeLayout - applied the oval shape its displaying properly like a rounded relative layout.
added a textview and image view for the relative layout.

now if apply background color for image or for textview these are appearing as a square means appearing outside of their parent relative layout.

can anyone suggest ideas please.

Tagged:
Sign In or Register to comment.