ActionBarSherlock icon indicating copy to clipboard operation
ActionBarSherlock copied to clipboard

Spinner drawing bug?

Open ccoffey opened this issue 12 years ago • 1 comments

I have modified the example ActionBarSherlock/samples/demos/ListNavigation/ See my github fork here. for the changes.

In summary

I have added

MyArrayAdapter my_spinner_dropdown_item.xml I have modified ListNavigation.java

1. -25 ArrayAdapter<CharSequence> list = new CustomArrayAdapter(context, R.layout.sherlock_spinner_item, mLocations);
2. +25 ArrayAdapter<CharSequence> list = new MyArrayAdapter(context, R.layout.sherlock_spinner_item, mLocations);

The issue is as follows.

When running on an AVD with Android 4.0, I get the expected and desired result. Each time the Spinner dropdown is opened the numbers beside each item increment.

Uo2dy

When running on an AVD with Android 2.2, I do NOT get the expected and desired result. The Spinner dropdown only updates the first two times it is opened, then it never updates again.

Whats really weird is setText() is still being called and count is still incremented but the new values are just never being drawn.

uRfCw

Motivation for fixing this issue? Google's gmail app has a similar feature, dynamic counts inside a Spinner dropdown menu. This is actually where I got my feature idea from.

unnamed

ccoffey avatar Jan 03 '13 14:01 ccoffey

I'll try to pull in your sample to the 'known-bugs' project today.

JakeWharton avatar Jan 14 '13 19:01 JakeWharton