i have a relative layout and i have two buttons in it with texts \"hello\" and \"world\" respectively. i want these two buttons to lie adjacent to each other and equally occupy
Take a Button align it in center with 1dpwidth and height. Now place your Button1 with the property android:layout_width = fill parentto left of center, again with respect to center button put Button2 to the right of center with the property android:layout_width = fill parent.