私は次のものを持っていますLinearLayout
。背景を別の画像に設定すると、パディング情報がリセットされるのがわかりません。これを防ぐ方法はありますか?
<LinearLayout android:id="@+id/aPanel"
android:orientation="horizontal" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:background="@drawable/bkground"
android:paddingLeft="15dp" android:paddingRight="15dp">
<!-- some children here -->
</LinearLayout>
LinearLayout
aPanelの背景ドローアブルを変更すると、子の位置がずれるのがわかります。