Spinner graphical bug API 21

前端 未结 1 1988
执念已碎
执念已碎 2020-12-19 06:06

I have one spinner in a fragment that have a very annoying graphical glitch. This occurs only on my Nexus 5 with API 21.

1条回答
  •  旧时难觅i
    2020-12-19 07:02

    I managed to work around this bug in two different ways:

    1. Set a style to your spinner:

      
      

    maybe the background color in the predefined styles is enough for you. If not try

    1. Create a shape drawable with a corner radius:

      
      
          
          
      
      

    and set it as a popupBackground to your spinner

        
    

    hope this is helpful!

    0 讨论(0)
提交回复
热议问题