Actual Device Height

johnaaronrose

Active Member
Licensed User
Longtime User
When I print the value of 100%x for a 480x800 1.5 density device it gives 724 rather than 800. Presumably this means that I cannot create views which have their bottom edge (i.e. top+height) greater than 724. My guess is that 725 to to 800 are reserved for menu: is that correct? If so, is it possible to suppress the use of the menu on the layout and make it available to 'standard' views? If not, what is the unusable range (as per 725-800) for each device height?
 

johnaaronrose

Active Member
Licensed User
Longtime User
Layout Variants

Thanks, Erel. Would GetlayoutValues give height as the device's height or that available after allowing for the title?

In the beginner's guide, it gives an example of using the Abstract Designer to create a layout variant for each of portrait & landscape modes. However, it does not show how the appropriate mode is selected at runtime. Is this automatic? I'm also interested in how the selection is coded (e.g. for the case when the user reorientates the device which would presumably need the code to be in Activity Resume). Could you give an example of the appropriate code?
 
Upvote 0
Top