I want to have an action bar with AutoCompleteTextView(Collapsible) as a menuItem along with other menuItems like Delete. I am using SherlockActionBar's library to make it compatible with lower version(like 2.2, 2.3).
My requirement is to display
a searchIcon (for collapsible AutoCompleteTextView) at extreme right of the actionBar and
a delete icon to left of above mentioned searchIcon.
Now when user taps on searchIcon, it should expand itself to cover the entire actionBar (hidinig delete icon).
I had tried wrapping both the iconsearch(for AutoCompleteTextView) and deleteButton in a layout and providing this layout as a view for action bar provided by SherlockActionBar library but it didn't displayed anything.
Then I tried adding iconSearch (with attribute value as collapsible) and deleteButton as individual menu items (shown in the SherlockActionBar Samples) but it just displays actionSearch.
I have no idea how to implement the same using SherlockActionBar library. I have tried to implement the same by following the samples given but couldn't achieve this.
Any help would be appreciated...
Thanks in advance.