Don't change x-coordinate of view, if you want to use RelativeLayout then use its properties like left_of, right_of etc. But for now as per your requirement you can simply use LinearLayout(as a parent view instead of RelativeLayout) with Horizontal orientation.