0
이미지 뷰를 추가하려고하는데 이미지를 볼 때 이미지의 상단과 하단 사이에 너무 많은 공간이 있습니다. 조각들로 하단 탐색을 사용하고 있습니다. 공간과 함께 이미지를 상단에 가깝게 만들고 싶습니다. 이 레이아웃에 내가 뭘 잘못하고 있니?프레임 레이아웃의 안드로이드 레이아웃 문제
주요 활동
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:design="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.android.gershpark.MainActivity">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/main_image"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:contentDescription="main image"
android:src="@drawable/fb_img_1497698892826" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/frame_layout"
android:layout_below="@id/main_image"
/>
<View
android:id="@+id/view"
android:layout_width="match_parent"
android:layout_height="8dp"
android:background="@drawable/shadow"
android:layout_above="@+id/bot_nav">
</View>
<android.support.design.widget.BottomNavigationView
android:id="@+id/bot_nav"
android:layout_gravity="bottom"
android:layout_width="match_parent"
android:layout_alignParentBottom="true"
android:layout_height="wrap_content"
android:background="@android:color/holo_blue_light"
design:itemIconTint='#f8f8f8'
design:menu='@menu/bot_menu'
/>
</RelativeLayout>
</android.support.design.widget.CoordinatorLayout>
홈 조각은
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.android.gershpark.HomeFragment">
<!-- TODO: Update blank fragment layout -->
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Home"/>
</FrameLayout>