진저브레드에서만 ImageButton이 제대로 출력되지 않습니다.
아래 코드에서 btn_history 버튼이 출력이 되지 않습니다.
현상은
1. 2.3.x OS에서만 출력이 되지 않음. 다른 OS(4.0 이후)에서는 정상적으로 출력됨.
2. android:background를 다른 색깔로 바꾸면, 버튼은 출력되나, 다른 이미지들의 배경으로 이 버튼 이미지가 들어감
3. LinerarLayout으로 변경하고 두 버튼의 weight를 모두 1로 줘도 동일함
혹시 아시는 분 있으시면, 꼭 답변 부탁 드립니다.
<RelativeLayout
android:id="@+id/rl_play_top"
android:layout_width="match_parent"
android:layout_height="@dimen/play_top_height"
android:gravity="center_vertical"
android:background="@drawable/bg_play_top" >
<ImageButton
android:id="@+id/btn_history"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="@dimen/play_top_btns_margin_left_right"
android:src="@drawable/drawable_btn_history"
android:background="@color/transparent" />
<ImageButton
android:id="@+id/btn_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginRight="@dimen/play_top_btns_margin_left_right"
android:src="@drawable/drawable_btn_image"
android:background="@color/transparent" />
</RelativeLayout>