my app's mainactivity behaves strangely in rotating screen. cannot rotate until click "overview" on navigation bar , turn on phones(tested on nexus 4/5/6). however, can rotate on tablets(nexus 7/9) @ time.
here properties mainactivity considered maybe influence screen rotation:
- supports rtl
- no
android:configchangesin manifest.xml - using
recyclerviewstaggeredgridlayoutmanagercount of span changes according screen size(3 above 7.0 , 2 below, judgement occurs inoncreate()) - using
navigationviewin design library - have
application(customized) member assigned(myapplication) getactivityinoncreate() android:windowbackground="@android:color/transparent",android:windowistranslucent="true"in styles.xml
please give suggestions or directions find out why problem occurs. in advance!
update: set android:screenorientation="user(by default unspecified)" in manifest.xml solve problem want know why can't rotate screen without doing this.
Comments
Post a Comment