わからない問題があります。
アプリケーションにActionBarをセットアップしました(ターゲットSDK 11、テーマHolo.Light)。しかし、XMLまたはsetBackgroundDrawable(d)の方法で背景を設定すると、背景はActionBarの高さに比例しません。
-ドローアブルが小さすぎる場合は、アクションバーの高さを満たすように引き伸ばされます。-ただし、高すぎる場合は、縮小されず、レイアウトの残りの部分にオーバーレイされます。
android devで提供されているガイドラインに従い、DrawableBitmapを介して設定しようとしましたが、同じ結果になりました。
ご回答ありがとうございます。
<resources>
<!-- the theme applied to the application or activity -->
<style name="CustomActivityTheme" parent="@android:style/Theme.Holo">
<item name="android:actionBarStyle">@style/MyActionBar</item>
<!-- other activity and action bar styles here -->
</style>
<!-- style for the action bar backgrounds -->
<style name="MyActionBar" parent="@android:style/Widget.Holo.ActionBar">
<item name="android:background">@drawable/ab_background</item>
</style>