Tôi đang tạo thanh tác vụ với các nút tìm kiếm tùy chỉnh mà tôi đặt trong phần biểu tượng của menu.xml.Xóa mục thanh tác vụ nền màu xanh
Vấn đề là, khi tôi bấm chúng, tôi thấy cả phiên bản được chọn của hình ảnh của nút và nền màu xanh của chủ đề holo.
Đây là menu.xml tôi:
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:id="@+id/current_position"
android:icon="@drawable/ab_location_layer"
android:menuCategory="container"
android:showAsAction="ifRoom"
android:title="Current position">
</item>
</menu>
Các ab_location_layer là thế này:
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/ab_location_pressed" android:state_pressed="true"/>
<item android:drawable="@drawable/ab_location" android:state_pressed="false"/>
</selector>
Các ab_location_layer chứa một hình ảnh mà là nhỏ hơn so với actionBar. Làm cách nào để xóa nền màu xanh lam trên thanh tác vụ? Tôi cũng đang sử dụng actionbarsherlock.
Cảm ơn
thêm mã của bạn xin vui lòng, và cố gắng sử dụng bộ chọn, bạn có thể sửa chữa – Houcine