How to rotate android spinner dropdown window -
I am trying to get a vertical But it only spins the spinner view, but there is no dropdown list. How to rotate the dropdown window as shown in the image below? You will need to create a custom adapter for your spinner. Next on your getView, make sure that you rotate the parent who passes it. An example adapter: Result: spinner
I am able to rotate the spinner view using ;
extends the public class adapter array adapter & lt; String & gt; {Public adapter (context reference, int resource, list & lt; string & gt; objects) {super (references, resources, objects); } @ Override Public View getDropDownView (integer status, seeviewview, ViewGroup parent) {getView Return (Status, Convertview, Parent); } @ Override public view getView (see int status, see convertview view, ViewGroup parents) {see V = layoutInflator. From (getContext ()). (R. Lay.If (parent.getRotation () == 0 & amp; amp; and Examples of Parents listView) {Parents Solution (-90);} Return V |}}
Comments
Post a Comment