This is the code I am using and it is not working:
I have done it by easiest way:
Just take one RelativeLayout and put your child view in it, which you want to place at right side.
Hope it will help you.