Code example for View

0
        public MyArrayAdapter(Context context, String[] testItems) {
            super(context, android.R.layout.simple_spinner_item, testItems);
        } 
 
        @Override public View getView(int position, View convertView, ViewGroup parent) {
            return new View(getContext());
        } 
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java