我试图将LinearLayout的背景更改为一些木纹纹理,但它会根据木纹背景的尺寸改变LinearLayout的宽度和高度!我需要LinearLayout忽略背景的尺寸!
<LinearLayout
android:id="@+id/LinearLayout1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/wood"
android:orientation="vertical" >
some content here which I need to wrap height to them!
</LinearLayout>