How to rotate android spinner dropdown window -


I am trying to get a vertical spinner I am able to rotate the spinner view using ;

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?

Enter image details here

Enter image details here

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:

  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 |}}  

Result:

Enter image details here


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -