Dynamically position right corner arrow of the ActionBar Spinner based on length of displayed title

后端 未结 1 480
星月不相逢
星月不相逢 2021-02-09 23:49

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, th

1条回答
  •  再見小時候
    2021-02-10 00:53

    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.

    0 讨论(0)
提交回复
热议问题