No specific devices appear in android studio when configuring application for various screen sizes

0

Please do not reply to the android documentation link to read. I'm developing an app that has which be adapted to more or less 8 different screen formats of different inches, of at least 4.5 inches and a maximum of 7 inches, in the minimum API 15. Looking at various tutorials on the internet was taught that to adapt layouts.xml to different screens have to create and name folders with the following names for different sizes: layout-small (0dp-470dp), layout-normal (472dp-640dp) , layout-large (641dp-960dp / mdpi 1024x600 - tvdpi 800x1180, xhdpi 1200x1120) and layout-xlarge (961dp) being that for normal-layout folder the android rule is from 3.7 to 4.3 inches and layout-large 4.0 folder to 7.1 inches. In my project I am initially organizing 4 layouts xmls in the normal, large, normal tvdpi and normal xhdpi folders and the chosen devices are nexus s 4.0 ", nexus wxga 4.7", pixel xl 5.5 "and nexus6 5.96". The problem I'm having is that in the menu to choose the device from the xmls layouts does not appear the respective devices in almost no folder, and even when I add a device definition this setting is not set to the specific layout. And when I wrap a device and click on another layout and go back to the layout I was The device I set is no longer in layout.xml. For those who have experience with applications suited to various screen sizes please ask how can I configure layouts to be modeled on devices nexus s 4.0, nexus wxga 4.7, pixel xl 5.5 "and nexus6 5.96" and how do I display all the devices in the devices menu. Below are some images to help.

Highlightingthedifferentsizesoflayouts.xmls

Notethatfortheselectedfolderintheleft-handcorneractivityxmlcontractorregister(large)inthedevicesmenu inthehighlightedredboxalmostnodeviceisavailable.

Note that for the selected folder in the left-hand corner activity contractor (normal) contractor registration in the devices menu  in the highlighted red box is only available at the end of the menu avd nexus 5.

    
asked by anonymous 22.03.2018 / 17:27

1 answer

0

When you create a layout, this layout is usually automatically embedded for all screen sizes, for example, if you create a LinearLayout and place size attributes such as match_parent or wrap_content, they will adapt to screen size and other objects that you insert on the screen ... Then it would be nice for you to create a layout where you take this information into consideration without worrying about sizes. Cases can happen when talking about putting images in layout, because the image can be distorted among other things, but then you need to do a validation to image to solve those problems.

I do not know if what I answered was what you want, but it was what you gave to understand

    
22.03.2018 / 19:25