How to remove border/shadow from lollipop buttons

前端 未结 11 1536
借酒劲吻你
借酒劲吻你 2020-12-12 19:21

The buttons looks fine for api < 21. However, the +21 versions creates this border or shadow that is shown on the image below. How do I get rid of it without changeing th

11条回答
  •  悲哀的现实
    2020-12-12 19:50

    Issue

    1. From Android v21, Border has been added by default for all the button.

      
      
      
      • The property "stateListAnimator" is the one which is causing the problem.

    Solution

    1. In our application theme, set button style to remove the default border (Android support library itself provides style for it).

      
      

提交回复
热议问题