<style name="AppTheme.NoPadding" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:windowContentOverlay">@null</item>
<item name="android:padding">0dp</item>
</style>
在 `AndroidManifest` 對應 `<LinearLayout
xmlns:android="https://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="0dp"
android:fitsSystemWindows="true"> ... </LinearLayout>
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
android:src="@drawable/bg"
android:contentDescription="@string/desc" />
**注意**:用 `android:background` 而非 `src` 可避免留白,`scaleType="centerCrop"` 填滿。開啟「佈局邊界顯示」 (開發者選項) 查看紅線邊界,確認無多餘間距。