Dynamically Position Right Corner Arrow Of The Actionbar Spinner Based On Length Of Displayed Title
In the Google+ App, the position of the right corner arrow of the ActionBar Spinner adapts to the length of the current string showing. For example, the Spinner's length seems shor
Solution 1:
Please refer the code of android pure Calendar
, in its adapter, getView()
always returns the current item in Calendar
so that the width of the Spinner
is equal to the current item. Actually, the Spinner
width in ActionBar
is always calculated as the length of its longest item. Calendar
does some special process here.
Post a Comment for "Dynamically Position Right Corner Arrow Of The Actionbar Spinner Based On Length Of Displayed Title"