Android NumberPicker with strings
问题 I have customised the NumberPicker to show text. The output is this: when I press OK I want to add the e.x mouse to my list "Article". What I'm getting instead is the index value (int). Its populated by "array[]", it includes a list with the data shown. What's the workaround to get my item/string.? public void Generatortable(){ final android.support.v7.app.AlertDialog.Builder alert = new android.support.v7.app.AlertDialog.Builder(this); alert.setCancelable(false); LinearLayout l1 = new