my app has complex layouts hope not scaled in "large" display size of android n.
i thought stupid method calculate suitable scale ratio screen density, iterate each view of layout, , reset layoutparameters each view.
my question is, common issue/requirement develop, there api or layout setting deny "display size" change in layouts?
the doc not updated yet on that. it's possible find description of new functionality here (screen zoom), there's no way know how not support it.
you can decide handling configuration change adding parameters configchanges. there "secret" value "density" not yet in doc works expected. add line in manifest activity.
<activity android:name=".myactivity" android:configchanges="density"/>
i suggest use these if want manage multi-window mode. code better this:
<activity android:name=".myactivity" android:configchanges="screensize|smallestscreensize|screenlayout|orientation|density"/>
Comments
Post a Comment