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

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -