I have a FrameLayout which contains 2 views , the second is something like a Close Button (X) and i want to position it on the right.
Close Button (X)
I\'ve tried layout
Just put your elements inside FrameLayout to the second RelativeLayout. And use android:layout_alignParentRight="true" for the element which you want to align right.