Custom (gradient) background of ActionBar Compat

后端 未结 4 1666
遥遥无期
遥遥无期 2021-02-05 13:59

I am using Action Bar Compat so that my action bar with navigation drawer was backward compatible down to API level 9 and I want to change the background of the action bar.

4条回答
  •  南笙
    南笙 (楼主)
    2021-02-05 14:50

    I also use that sample code from Android Developer and use the gradient XML as like yours.

    
    

    I found the different of this file between yours and mine is android:shape="line" / android:shape="rectangle".

    So I try to change my rectangle to line. My app also occurs the same exception and the OS is restarted. Maybe the shape is the key point.

提交回复
热议问题