I'm using as ActionBarSherlock spinner in a fragment.

import android.widget.AdapterView;
import android.widget.AdapterView.OnItemSelectedListener;
import android.widget.ArrayAdapter;

public class Tab1 extends SherlockFragment implements 
IcsAdapterView.OnItemSelectedListener
...
spinner = (IcsSpinner) view.findViewById(R.id.spinner);
adapter = new ArrayAdapter( getActivity(), R.layout.sherlock_spinner_item, 
nameArray );
spinner.setAdapter(adapter);

        @Override
        public void onItemSelected(IcsAdapterView<?> parent, View view, int 
pos, long id) {
            Log.v(TAG,"spinner item selected"); 
         }

        @Override
        public void onNothingSelected(IcsAdapterView<?> parent) {
         }

Spinner is like this in xml:
<com.actionbarsherlock.internal.widget.IcsSpinner android:id="@+id/spinner"
                                                                
android:layout_width="wrap_content"
                                                                
android:layout_height="wrap_content"
                                                                
android:textSize="14sp"
                                                                
android:prompt="@string/spinner"
                                                                />



When I select an item in the spinner all that shows in the log is this:

W/InputMethodManagerService(  378): Window already focused, ignoring focus 
gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@41dc7838 
attribute=null, token = android.os.BinderProxy@415afdb0

With every selection in the spinner I get one of these warnings but the 
onItemSelected is never called.  Log message never shows.

Help, Suggestions?



-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to