Java Code Examples for android.widget.AdapterView.OnItemSelectedListener

The following are Jave code examples for showing how to use OnItemSelectedListener of the android.widget.AdapterView class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: JKApp   File: EventHelper.java   View Source Code Vote up 4 votes
public static void itemSelected(AdapterView.OnItemSelectedListener li, AdapterView...views) {
    if(views == null || views.length == 0) return;
    for(AdapterView v : views) v.setOnItemSelectedListener(li);
}
 
Example 2
Project: CXJPadProject   File: ZSpaner.java   View Source Code Vote up 4 votes
public void setOnItemSelectedListener(AdapterView.OnItemSelectedListener listener) {
    span.setOnItemSelectedListener(listener);
}
 
Example 3
Project: CompatAlertDialog   File: AlertDialog.java   View Source Code Vote up 4 votes
@Override
public Builder setOnItemSelectedListener(final AdapterView.OnItemSelectedListener listener) {
    builder.setOnItemSelectedListener(listener);
    return this;
}
 
Example 4
Project: JKApp   File: EventHelper.java   View Source Code Vote up 4 votes
public static void itemSelected(IPresent li, AdapterView...views) {
    if (!(li instanceof AdapterView.OnItemSelectedListener)) return;
    itemSelected((AdapterView.OnItemSelectedListener) li, views);
}
 
Example 5
Project: Matisse-Image-and-Video-Selector   File: AlbumsSpinner.java   View Source Code Vote up 4 votes
public void setOnItemSelectedListener(AdapterView.OnItemSelectedListener listener) {
    mOnItemSelectedListener = listener;
}
 
Example 6
Project: Matisse   File: AlbumsSpinner.java   View Source Code Vote up 4 votes
public void setOnItemSelectedListener(AdapterView.OnItemSelectedListener listener) {
    mOnItemSelectedListener = listener;
}
 
Example 7
Project: AndroidBasicLibs   File: HorizontialListView.java   View Source Code Vote up 4 votes
@Override
public void setOnItemSelectedListener(AdapterView.OnItemSelectedListener listener) {
	mOnItemSelected = listener;

}
 
Example 8
Project: LeCatApp   File: EventHelper.java   View Source Code Vote up 4 votes
public static void itemSelected(IPresent li, AdapterView...views) {
    if (!(li instanceof AdapterView.OnItemSelectedListener)) return;
    itemSelected((AdapterView.OnItemSelectedListener) li, views);
}
 
Example 9
Project: VanGogh   File: VanMediaSpinner.java   View Source Code Vote up 4 votes
public void setOnItemSelectedListener(AdapterView.OnItemSelectedListener listener) {
    mOnItemSelectedListener = listener;
}
 
Example 10
Project: Smarty-Streets-AutoCompleteTextView   File: SmartyStreetsAutocompleteTextView.java   View Source Code Vote up 4 votes
/**
 * DO NOT USE. Prefer {@link #setOnAddressSelectedListener} instead
 */
@Override
public final void setOnItemSelectedListener(final AdapterView.OnItemSelectedListener l) {
    throw new UnsupportedOperationException("Use set" + OnAddressSelectedListener.class.getSimpleName() + "() instead");
}
 
Example 11
Project: ShaddockVideoPlayer   File: BaseViewHolder.java   View Source Code Vote up 2 votes
/**
 * Sets the listview or gridview's item selected click listener of the view
 *
 * @param viewId   The view id.
 * @param listener The item selected click listener;
 * @return The BaseViewHolder for chaining.
 */
public BaseViewHolder setOnItemSelectedClickListener(int viewId, AdapterView.OnItemSelectedListener listener) {
    AdapterView view = getView(viewId);
    view.setOnItemSelectedListener(listener);
    return this;
}
 
Example 12
Project: GitHub   File: BaseViewHolder.java   View Source Code Vote up 2 votes
/**
 * Sets the listview or gridview's item selected click listener of the view
 *
 * @param viewId   The view id.
 * @param listener The item selected click listener;
 * @return The BaseViewHolder for chaining.
 */
public BaseViewHolder setOnItemSelectedClickListener(int viewId, AdapterView.OnItemSelectedListener listener) {
    AdapterView view = getView(viewId);
    view.setOnItemSelectedListener(listener);
    return this;
}
 
Example 13
Project: GitHub   File: BaseViewHolder.java   View Source Code Vote up 2 votes
/**
 * Sets the listview or gridview's item selected click listener of the view
 *
 * @param viewId   The view id.
 * @param listener The item selected click listener;
 * @return The BaseViewHolder for chaining.
 */
public BaseViewHolder setOnItemSelectedClickListener(int viewId, AdapterView.OnItemSelectedListener listener) {
    AdapterView view = getView(viewId);
    view.setOnItemSelectedListener(listener);
    return this;
}
 
Example 14
Project: GitHub   File: BaseViewHolder.java   View Source Code Vote up 2 votes
/**
 * Sets the listview or gridview's item selected click listener of the view
 *
 * @param viewId   The view id.
 * @param listener The item selected click listener;
 * @return The BaseViewHolder for chaining.
 */
public BaseViewHolder setOnItemSelectedClickListener(@IdRes int viewId, AdapterView.OnItemSelectedListener listener) {
    AdapterView view = getView(viewId);
    view.setOnItemSelectedListener(listener);
    return this;
}
 
Example 15
Project: GitHub   File: BaseViewHolder.java   View Source Code Vote up 2 votes
/**
 * Sets the listview or gridview's item selected click listener of the view
 *
 * @param viewId   The view id.
 * @param listener The item selected click listener;
 * @return The BaseViewHolder for chaining.
 */
public BaseViewHolder setOnItemSelectedClickListener(@IdRes int viewId, AdapterView.OnItemSelectedListener listener) {
    AdapterView view = getView(viewId);
    view.setOnItemSelectedListener(listener);
    return this;
}
 
Example 16
Project: MultiSelecter   File: BaseViewHolder.java   View Source Code Vote up 2 votes
/**
 * Sets the listview or gridview's item selected click listener of the view
 *
 * @param viewId The view id.
 * @param listener The item selected click listener;
 * @return The BaseViewHolder for chaining.
 */
public BaseViewHolder setOnItemSelectedClickListener(@IdRes int viewId, AdapterView.OnItemSelectedListener listener) {
    AdapterView view = getView(viewId);
    view.setOnItemSelectedListener(listener);
    return this;
}
 
Example 17
Project: garras   File: BaseViewHolder.java   View Source Code Vote up 2 votes
/**
 * Sets the listview or gridview's item selected click listener of the view
 *
 * @param viewId   The view id.
 * @param listener The item selected click listener;
 * @return The BaseViewHolder for chaining.
 */
public BaseViewHolder setOnItemSelectedClickListener(@IdRes int viewId, AdapterView.OnItemSelectedListener listener) {
    AdapterView view = getView(viewId);
    view.setOnItemSelectedListener(listener);
    return this;
}
 
Example 18
Project: SimpleMutiTypeAdapter   File: BaseViewHolder.java   View Source Code Vote up 2 votes
/**
 * Sets the listview or gridview's item selected click listener of the view
 *
 * @param viewId   The view id.
 * @param listener The item selected click listener;
 * @return The BaseViewHolder for chaining.
 */
public BaseViewHolder setOnItemSelectedClickListener(@IdRes int viewId, AdapterView.OnItemSelectedListener listener) {
    AdapterView view = getView(viewId);
    view.setOnItemSelectedListener(listener);
    return this;
}
 
Example 19
Project: JD-Test   File: BaseViewHolder.java   View Source Code Vote up 2 votes
/**
 * Sets the listview or gridview's item selected click listener of the view
 *
 * @param viewId   The view id.
 * @param listener The item selected click listener;
 * @return The BaseViewHolder for chaining.
 */
public BaseViewHolder setOnItemSelectedClickListener(int viewId, AdapterView.OnItemSelectedListener listener) {
    AdapterView view = getView(viewId);
    view.setOnItemSelectedListener(listener);
    return this;
}
 
Example 20
Project: decoy   File: BaseViewHolder.java   View Source Code Vote up 2 votes
/**
 * Sets the listview or gridview's item selected click listener of the view
 *
 * @param viewId   The view id.
 * @param listener The item selected click listener;
 * @return The BaseViewHolder for chaining.
 */
public BaseViewHolder setOnItemSelectedClickListener(int viewId, AdapterView.OnItemSelectedListener listener) {
    AdapterView view = getView(viewId);
    view.setOnItemSelectedListener(listener);
    return this;
}