<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/framelayout1"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_weight="1" >
<ImageButton
android:id="@+id/smileButton"
android:background="@drawable/smile_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top|right"
android:adjustViewBounds="true"
android:scaleType="centerInside" />
<ImageButton
android:id="@+id/smileButton"
android:background="@drawable/smile_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|right"
android:adjustViewBounds="true"
android:scaleType="centerInside" />
</FrameLayout>
try this