imageView와 button의 사이즈를
가로 세로 (65dp, 65dp)와 (35dp, 25dp)로 정의해서 사용중입니다.
꼭 사이즈를 작게 해야 되서 저렇게 했지만,
이 뷰들에 background를 적용하면 사이즈가 커져버립니다...
분명히 크기는 절대적인 dp값을 줬는데.. 왜 커지는 것일까요
<!-- 3개의 버튼(사진)이 들어갈 레이아웃 -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:orientation="horizontal"
android:layout_weight="0.7">
<!-- 첫번째 + 버튼 -->
<RelativeLayout
android:layout_width="65dp"
android:layout_height="match_parent">
<Button
android:id="@+id/btn_report_addImage1"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>
<RelativeLayout
android:id="@+id/layout_report_image1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone" >
<ImageView
android:id="@+id/image_report_image1"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</RelativeLayout>
</RelativeLayout>
<!-- 두번째 + 버튼 -->
<RelativeLayout
android:layout_width="65dp"
android:layout_height="match_parent"
android:layout_marginLeft="5dp">
<Button
android:id="@+id/btn_report_addImage2"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<RelativeLayout
android:id="@+id/layout_report_image2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone">
<ImageView
android:id="@+id/image_report_image2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitXY"/>
</RelativeLayout>
</RelativeLayout>