ノブはこちら。画像だけを切り取った描画可能な PNG があります。縦の空白はありません。親の空白の垂直マージンに重ねると、次のように追加されます。
これらの余白なしで PNG を表示したい。
私の主な活動では、私が使用しています
image = (ImageView) findViewById(R.id.imageView1);
image.setImageResource(R.drawable.avalogo);
そして私のxmlで私は使用しています
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior" tools:showIn="@layout/app_bar_main"
tools:context=".MainActivity">
<ImageView
android:id="@+id/imageView1"
android:layout_alignTop="@id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/avalogo"
android:padding="5px"
/>
</RelativeLayout>
私はすべてを試し、多くを読みました。喜びはありません。Samsung S6を使用しています。ティア。