Android ActionBar on Lollipop not styling correctly -
i designing app material design, having trouble styling actionbar.
first of all, can not actionbar render shadow. have tried setting elevation in multiple ways:
in styles.xml (v21):
<item name="android:elevation">4dp</item> <item name="elevation">4dp</item>
in oncreate()
method
getactionbar().setelevation(4);
however, none of these result in actionbar rendering shadow. not sure if important, running android 5.0.1 lollipop. missing in trying render shadow? don't want make drawable shadow , set window background.
secondly, actionbar buttons square, , when click on them, ripple cut off in square, while in other apps have used mask ripples has been circular, , app had been using round buttons, changed , don't know why. have accidentaly changed making them square?
thank you
the issue u use actionbar while other apps use toolbar. read , change code, should work after that.
Comments
Post a Comment