Remove action bar shadow

前端 未结 1 1440
情深已故
情深已故 2021-01-29 01:22

I want to remove the shadow that appears below the appcompat action bar so that the background of the action bar is completely transparent.

This is my theme and action b

1条回答
  •  孤城傲影
    2021-01-29 02:09

    Set windowContentOverlay to a drawable that will be drawn under the action bar. If you don't want a shadow set it to null, like so:

    @null
    

    and

    @null
    

    This works API level 16 and up.

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