Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ActionBar.selectTab doesn't refresh spinner in compact mode

In an application, I'm using Tabs with the ActionBar, and sometimes I switch tabs programatically using the ActionBar.selectTab() method.

This works well but when the width of the ActionBar is too small, the tabs go in compact mode, and are displayed as a drop down menu. And when I use the ActionBar.selectTab() method, the displayed item in the spinner doesn't change.

Is there an official solution for this or a known workaround ?

like image 334
XGouchet Avatar asked Dec 05 '25 10:12

XGouchet


1 Answers

This is a known bug in Android. Please look at a workaround suggested by Jake Wharton here: and star the issue so it gets fixed

like image 171
myforums Avatar answered Dec 07 '25 22:12

myforums



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!