framelayout 안의 LinearLayout에 imagebutton을 올렸습니다.


닫기 버튼을 오른쪽으로 이동 시킬려고 하는데 정렬이 안먹습니다.


android:layout_gravity="right"을 LinearLayout이나 ImageButton에도 줬는데 둘다 안먹네요.


어떻게 하면 정렬시킬수 있을까요?


조언 부탁드립니다.




 <FrameLayout
   xmlns:android="http://schemas.android.com/apk/res/android"
   android:layout_width="fill_parent"
   android:layout_height="fill_parent">
	<com.ImageView android:id="@+id/imageView"
		android:layout_width="fill_parent"
		android:layout_height="fill_parent"
		android:background = "#00ffffff"
		android:layout_gravity="center"
		android:scaleType="matrix">
	</com.ImageView>
	<LinearLayout
		android:orientation="horizontal"
		android:layout_width="fill_parent"
		android:layout_height="wrap_content">
		<ImageButton
			android:layout_height="wrap_content" android:id="@+id/btn_preview_close"
			android:layout_gravity="right" android:background="@drawable/btn_close"
			android:layout_width="wrap_content" />
	</LinearLayout>
</FrameLayout>