Hi I am trying to use the NumberPicker control in a 4.0.3 app. The issue is that depending on what other controls are there in the view, the NumberPicker behaves differently. In some cases NumberPicker always goes into edit mode and shows the virtual keyboard even when values are changed with scrolling.
In the code snippet below: test.xml: ------------- <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <TimePicker android:id="@+id/timePicker1" android:layout_width="match_parent" android:layout_height="wrap_content" /> <NumberPicker android:id="@+id/numberPicker1" android:layout_width="match_parent" android:layout_height="wrap_content" /> </LinearLayout> test.java: ------------- public class TestActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.test); NumberPicker np =(NumberPicker) findViewById(R.id.numberPicker1); np.setMinValue(50); np.setMaxValue(99); } } The above case works perfectly and Virtual Keyboard is not popped up. In case I replace the 'TimePicker' with say 'TextView' in the xml, the NumberPicker starts showing up the VIrtual Keyboard every time even for scroll events. Using 'TimePicker' or 'EditText' as first control fixes the issue. It seems like a SetFocus issue but an not able to figure out how I can fix it. --- Cheers Pankaj -- 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

