Android examples for User Interface:Spinner
get Input String From View
//package com.java2s; import android.widget.EditText; import android.widget.Spinner; public class Main { public static String getInputStringFromView(EditText editText) { return editText.getText().toString().trim(); }/*from w w w . j a v a 2s. c om*/ public static String getInputStringFromView(Spinner spinner) { return spinner.getSelectedItem().toString().trim(); } }