java - Set portrait only orientation on devices with a screen size of less than 7 inches -


i creating android application want to:

  • run portrait orientation on screen sizes (6.9"-)
  • run portrait , landscape orientations on screen sizes (7"+)

how declare without using androids deprecated (small, normal, large, xlarge) screen sizes?

store boolean in values folders. there can multiple values folders values-h720dp or values-w320dp. read data in oncreated method of activity , set proper orientation. learn more read this


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -