안녕하세요.
정렬을 그림처럼 하고 싶습니다.
책이랑 찾아봐도 소스가 맞는것 같은데 쉽지 않아서요......
<RelativeLayout android:layout_width="fill_parent"
android:layout_height="70px" android:background="@color/color_pink"
android:layout_weight="0" android:gravity="center_vertical|center_horizontal">
<TextView android:id="@+id/date_read_head_title"
android:layout_width="fill_parent" android:text="@string/main_title"
android:layout_weight="0" android:layout_height="70px"
android:background="@color/color_pink" android:textColor="@color/color_white"
android:textSize="@dimen/dimens_navigation_title"
android:layout_centerHorizontal="true" />
<ImageButton android:id="@+id/date_read_btn_top_boardwrite"
android:background="@null" android:src="@drawable/btn_top_board_write"
android:layout_width="75px" android:layout_height="41px"
android:layout_alignParentRight="true" android:layout_marginRight="7dp" />
</RelativeLayout>
좋은하루 되시구요, 답변 부탁 드리겠습니다.




textview에는 gravity로 center값 주시면 되고요(layout_centerHorizontal을 true했는데도 중앙정렬 안되는건 width가fill_parent라서 그런거에요)
button은 layout_centerVertical을 true 하심 될거 같네요