这里是我的布局如何获取背景资源来填补的LinearLayout
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/backg"
android:paddingTop="40dp"
android:orientation="vertical"
tools:context=".AppleActivity" >
...
<LinearLayout>
我想到的背景,以填补布局。但是它在顶部和底部留下了相当大的空间。如果背景延伸,我不介意。我只是想填补这个观点。有谁知道什么可能导致这个问题?
万一它很重要:在我的清单文件中,我使用android:theme="@android:style/Theme.Holo.NoActionBar.Fullscreen"
来隐藏状态栏。
上传一个快照请 –
http://stackoverflow.com/questions/16135984/full-screen-background-image-in-an-activity/16139059#16139059 – stinepike
@learner你可以删除填充和检查? –