[! [이미지 설명을 여기에 입력하십시오.] [1]] [1] 안드로이드 개발에 안드로이드에 대한 새로운 브랜드이고 레이아웃을 빌드하기 위해 xml을 가지고 놀고 있습니다. 안녕 우분투를 인쇄하고 이미지를 삽입하기 위해 다음과 같은 코드를 작성했습니다. 그러나 Image는 원치 않는 위/아래 패딩이나 마진 (그것이 무엇인지 불확실합니다)이 이상하게 보입니다. 아무도 나를 제거하는 것을 도와주세요. 여기ImageView에서 원하지 않는 여백 또는 여백
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:background="@color/colorAccent"
android:orientation="vertical"
android:padding="10dp"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="8dp"
android:layout_margin="8dp"
android:text="Hello Ubuntu (16.06LTS)"
android:background="@color/colorPrimary"/>
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="0dp"
android:src="@mipmap/Ubuntu"
android:layout_margin="0dp"
/>
</LinearLayout>
스크린 샷 (오른쪽 preiew 참조) : https://i.stack.imgur.com/j9NlT.png
'우분투'라는 이름의 이미지를 확인하십시오. 여분의 공간이 있습니까? – Piyush
당신이 실제로 어떻게 보이는지에 대한 이미지를 추가 할 수 및 당신이 스크린 샷을 업로드 이미지 뷰 .centerInside –
PLZ 수하는 방법을 –