tôi bao gồm bố trí theo kiểu xml của tôi:Làm cách nào để có một bóng đổ trên ActionBar (ActionBarSherlock)?
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<style name="Theme.Styled" parent="Theme.Sherlock">
<item name="actionBarStyle">@style/Widget.MyApp.ActionBar</item>
<item name="android:actionBarStyle">@style/Widget.MyApp.ActionBar</item>
</style>
<style name="Widget.MyApp.ActionBar" parent="Widget.Sherlock.Light.ActionBar">
<item name="titleTextStyle">@style/Widget.MyApp.TitleTextStyle</item>
<item name="background">@color/red</item>
<item name="android:background">@color/red</item>
<item name="windowContentOverlay">@null</item>
<item name="android:windowContentOverlay">@null</item>
</style>
<style name="Widget.MyApp.TitleTextStyle" parent="TextAppearance.Sherlock.Widget.ActionBar.Title">
<item name="android:textColor">@color/white</item>
<item name="android:textSize">21sp</item>
</style>
</resources>
Một số tìm kiếm trên internet cho thấy rằng việc sử dụng windowContentOverlay thiết lập để @null. Nhưng khi tôi sử dụng nó trong phong cách xml nó không thay đổi bất cứ điều gì. Bất kỳ ai có thể giúp đỡ phải làm gì không?
Hình ảnh vá Android 9 không quá thẩm mỹ, tôi đã sử dụng xong. Cảm ơn :) – Mehdiway