¡@

Home 

2014/10/16 ¤W¤È 08:23:39

android Programming Glossary: selectedsection

Actionbar list navigation width - wrap content

http://stackoverflow.com/questions/14712697/actionbar-list-navigation-width-wrap-content

to the widest item's width. So here's my solution Store the current selected section e.g. section in your example say selectedSection in your code. Actually you have to do it in the onNavigationItemSelected method of NavigationListener. Override the getView.. method of NavigationListener. Override the getView method of your SpinnerAdapter always set it's content to selectedSection. In the onNavigationItemSelected method of NavigationListener try to call the notifyDataSetChanged method of your spinnerAdapter.. try to call the notifyDataSetChanged method of your spinnerAdapter after you set the current mode to selectedSection. Here's the sample code final int selectedSection 0 final String sectionLabels short sec long section looooonger section..