You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The action bar is using actionbar_background_dropdown_start and actionbar_background_dropdown_end for the background of the dropdown list itself, but that background isn't visible because each item's background is drawn above it.
(Well, I suppose it would be if you used a translucent color. :)
Specifically, right now it's using actionbar_background_item_pressed_start and actionbar_background_item_pressed_end for each item in the dropdown list.
This is because drawable/actionbar_list_item_background.xml is using actionbar_btn_normal and actionbar_btn_pressed for the state list.
Ah -- there's a problem with my suggested fix: in List Navigation mode, the dropdown item background becomes the action bar's background, since it's used for the selected item shown in the spinner.
So there's the added caveat that you would need to use a SpinnerAdapter that provides a different view for the spinner itself.
Hmmm.
Yeah, it works if I add layout/actionbar_list_mode_title.xml like so:
Thank you. Yes we definitely need a way to configure the dropdown and this looks good. I haven't tested it yet but I hopefully find the time to do so soon.
The action bar is using actionbar_background_dropdown_start and actionbar_background_dropdown_end for the background of the dropdown list itself, but that background isn't visible because each item's background is drawn above it.
(Well, I suppose it would be if you used a translucent color. :)
Specifically, right now it's using actionbar_background_item_pressed_start and actionbar_background_item_pressed_end for each item in the dropdown list.
This is because drawable/actionbar_list_item_background.xml is using actionbar_btn_normal and actionbar_btn_pressed for the state list.
Suggestion:
(1) Add drawable/actionbar_list_item_normal.xml:
(2) Add drawable/actionbar_list_item_pressed.xml:
(3) Modify drawable/actionbar_list_item_background.xml as follows:
(4) Add the four new colors to the colors.xml file:
Note: you only need to add 2 colors if you don't want the list background colors to be configurable.
The text was updated successfully, but these errors were encountered: