After using the Android Design Support Library\'s TextInputLayout to place a floating label above an EditText component, I was wondering if there is a way to add a floating
I have created a compound View component which displays a label above the Spinner. The text for the label can be set using XML or in Java.
The component has the key features of a Spinner (not all of them) as well as looking similar to the TextInputLayout component.
I have named it a LabelledSpinner, and it is available as part of my UsefulViews Android library on GitHub under the Apache 2.0 License.
To use it, add the library dependency in your build.gradle file:
compile 'com.satsuware.lib:usefulviews:+'
Examples of its usage are available at the GitHub repository (both a sample app, and a usage guide).