Skip to content

Instantly share code, notes, and snippets.

View vatbub's full-sized avatar

Frederik Kammel vatbub

View GitHub Profile
@vatbub
vatbub / Spinner.java
Last active February 9, 2018 22:12 — forked from vedant1811/Spinner.java
Custom Spinner to differentiate between user selected and prorammatically selected item. Make sure to call correct method to use this feature
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.AdapterView;
/**
* Used this to differentiate between user selected and prorammatically selected
* Call {@link Spinner#programmaticallySetPosition} to use this feature.
* Created by vedant on 6/1/15.