LinearLayout에서 가운데 타이틀 이미지뷰가 들어가고 양쪽에 이미지 버튼이 두개가 들어가게 구성을 하고 있습니다.
그런데 양끝 버튼이 양끝으로 안가고 중간에서 모여서 보이는데요.
weight를 빼면 왼쪽으로 정렬이 되서 보입니다.
RelativeLayout을 사용해보니 양끝 이미지는 잘 정렬이 되는데 가운데 이미지가 가운데 영역에서 상단으로 붙어버리는 현상이 생겨서
LinearLayout으로 작업중입니다.
아무래도 양끝의 이미지와 가운데의 이미지가 높이가 달라서 그렇게 되는거 같은데요.
좋은 방법좀 추천 부탁드립니다..
<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/bg_top_repeat"
android:gravity="center_vertical"
android:weightSum="10"
>
<ImageButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:color/transparent"
android:layout_marginLeft="15px"
android:layout_weight="4.5"
android:src="@drawable/btn_back"/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:color/transparent"
android:layout_weight="1"
android:src="@drawable/title_comment"
/>
<ImageButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:color/transparent"
android:layout_marginRight="15px"
android:layout_weight="4.5"
android:src="@drawable/btn_submit"
/>
</LinearLayout>



