<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/light_grey"
android:orientation="vertical" >
<TextView
android:id="@+id/program_title"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical|center_horizontal|center"
android:gravity="center"
android:padding="@dimen/borders"
android:shadowColor="@color/light_grey"
android:text="Large Text"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textStyle="bold" />
<ImageView
android:id="@+id/banner"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:src="@drawable/entertainment" />
<TextView
android:id="@+id/program_description"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical|center_horizontal"
android:padding="@dimen/borders"
android:text="Medium Text"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:id="@+id/program_times"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical|center_horizontal"
android:padding="@dimen/borders"
android:text="Large Text"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textStyle="bold" />
<Button
android:id="@+id/program_episodes"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="WATCH EPISODES" />
<Button
android:id="@+id/program_calendar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="ADD TO CALENDAR" />
</LinearLayout>
这是我的代码,当我运行它时,它显示了图像视图上方和下方的额外空间,我被困在如何删除它。它在 Eclipse 布局图形视图上显示完美,但在模拟器和 Android 手机中显示额外空间。