LinearLayout의 배경을 일부 나무 텍스처로 변경하려고했지만 나무 배경의 크기에 따라 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>
유용 할 수 있습니다 : http://stackoverflow.com/questions/8202647/setting-a-background-image-to-a-view-stretches-my-view –