1 package com.introlab.rtabmap;
3 import android.content.Context;
4 import android.util.AttributeSet;
5 import android.widget.Spinner;
17 public NDSpinner(Context context, AttributeSet attrs)
18 { super(context, attrs); }
20 public NDSpinner(Context context, AttributeSet attrs,
int defStyle)
21 { super(context, attrs, defStyle); }
25 boolean sameSelected = position == getSelectedItemPosition();
26 super.setSelection(position, animate);
35 boolean sameSelected = position == getSelectedItemPosition();
36 super.setSelection(position);
39 getOnItemSelectedListener().onItemSelected(
this, getSelectedView(), position, getSelectedItemId());
NDSpinner(Context context)
void setSelection(int position, boolean animate)
NDSpinner(Context context, AttributeSet attrs)
void setSelection(int position)
NDSpinner(Context context, AttributeSet attrs, int defStyle)