私は次のレイアウトを持っています:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:background="#EAEAEA">
<ListView
android:id="@+id/xxx"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:textColor="#464C59"
android:divider="#A4C539"
android:dividerHeight="1px">
</ListView>
<ImageView
android:id="@+id/home_bottom_bar"
android:src="@drawable/bottombar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:clickable="true"/>
</FrameLayout>
目標は、アクティビティの下部 (アイテムのリストを含む) に何らかの広告バーを表示することです。1つのことを除いて、問題なく動作します!バーのすぐ下に余分なスペースがあります (非常に小さいですが、十分に目立ちます)。ところで、すべてのパディングが 0 に設定されているのに、このスペースはどこから来るのでしょうか?
ありがとう!
編集
#EAEAEA
この問題を調査した結果、カスタム背景 ( ) がこの余分なスペースの原因であることが判明しました。ただし、これを修正する方法はまだわかりません。