android-screen-support

Best way for Multiple Screen Support - Android Studio

我只是一个虾纸丫 提交于 2019-12-08 04:40:49
问题 To support multiple screen size, what is the best way to do so ? in my manifest, i created the <supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" /> also i created different layout sizes and dimens layout-small layout-normal layout-large layout-xlarge I would have to individually edit which layouts to fit all the screens. But then some phone screen are able to

Android spacing issue in same resolution devices 1080x1920

吃可爱长大的小学妹 提交于 2019-12-07 20:25:16
问题 I am designing screen from Zeplin. (Zeplin provides each item attributes in dp) Following is the horizontal recycler view design example with 4 items from Zeplin. 360 dp means 1080 for xxhdpi devices I am testing my code on two 1080 devices with different dpi Samsung c5 [1080 x 1920 pixels, 16:9 ratio (480dpi)] Nexus 5X [1080 x 1920 pixels, 16:9 ratio (420dpi)] I am facing spacing issue in Nexus-5x, the Zeplin design works great on Samsung-c5. Samsung-c5 result Nexus-5x result - spacing issue

Screen Support in Android 3.2 (API level 13)

帅比萌擦擦* 提交于 2019-12-07 07:40:08
问题 According to the note written in this documentation (DeclaringTabletLayouts), the old groups was deprecated (small, normal, large, and xlarge), which is why we have to migrate to the new technique defined in Android 3.2. Note: Beginning with Android 3.2 (API level 13), these size groups are deprecated in favor of a new technique for managing screen sizes based on the available screen width. If you're developing for Android 3.2 and greater, see Declaring Tablet Layouts for Android 3.2 for more

screen support multiple devices using layout-large,layout-normal and layout-xlarge folders

末鹿安然 提交于 2019-12-07 03:41:50
问题 I created layout-large , layout-normal and layout-xlarge in the res folder and I copied all the xml files to those layout folders First, I want to ask what is the difference between layout (the default ) and layout-normal folder? I know if I run the application on big screen size the app will take the xml files from layout-xlarge . So I made all the elements in layout-xlarge look as I want using FrameLayout in tap2 10.1 , but when I run it in note2 or s3 mobile it looks different because the

Different width for Navigation Drawer in Tablet and Phone

一曲冷凌霜 提交于 2019-12-05 19:32:53
I was trying to implement material design for one of my project and here , the following is mentioned, The maximum width of the nav drawer is 5 times the standard increment (56dp on mobile and 64dp on tablet). So I would like to know how to implement these width for navigation drawer for mobile and tablets. I want to make different width to respective devices, either phone or tablets. I would love to use XML even if this also can be done using Java. Thank you. Create values-sw600dp folder in your project and add dimens.xml file in it. Define width in dimens.xml file of both values and values

Screen Support in Android 3.2 (API level 13)

安稳与你 提交于 2019-12-05 15:40:42
According to the note written in this documentation ( DeclaringTabletLayouts ), the old groups was deprecated (small, normal, large, and xlarge), which is why we have to migrate to the new technique defined in Android 3.2. Note: Beginning with Android 3.2 (API level 13), these size groups are deprecated in favor of a new technique for managing screen sizes based on the available screen width. If you're developing for Android 3.2 and greater, see Declaring Tablet Layouts for Android 3.2 for more information. How do we make different layouts for small vs normal vs large screens with the new

Drawables are always read from mdpi folder, regardless of screen size

心不动则不痛 提交于 2019-12-05 15:21:13
I am trying to create an application that works both on Samsung galaxy tab GT P1000 and samsung galaxy tab 10.1; The samsung galaxy tab 10.1 (1280 * 800) has a much bigger screen than that of the GT P1000, so I am assuming the GT P1000 should read from hdpi, and 10.1 should read from xhdpi. The surprise is that both of them are reading from the mdpi folder. Regards Large screen size does not necessarily means high pixel density. For pixel density you have to consider both physical screen size and screen resolution. For example consider Galaxy Note 1 and Galaxy Tab 10.1 , both have screen

screen support multiple devices using layout-large,layout-normal and layout-xlarge folders

一笑奈何 提交于 2019-12-05 07:50:19
I created layout-large , layout-normal and layout-xlarge in the res folder and I copied all the xml files to those layout folders First, I want to ask what is the difference between layout (the default ) and layout-normal folder? I know if I run the application on big screen size the app will take the xml files from layout-xlarge . So I made all the elements in layout-xlarge look as I want using FrameLayout in tap2 10.1 , but when I run it in note2 or s3 mobile it looks different because the screen size is not same . So how can I make the the application run in tap2 10.1 (1,280 x 800) and

Android studio layout size folders

廉价感情. 提交于 2019-12-04 09:05:53
I'm trying to create a different layout for 1080dp and others using "layout-sw1080dp" folder but it seems android studio completely ignores it and loads from the default layout folder. I've tried another way - setting different dimensions using values-sw1080dp and still nothing! What is the correct way to write different layouts for different screen sizes? DP is not the same as PIXEL!!! You think it's ignoring because devices with 1080dp do not exist (yet?). values-sw720dp: that's for Nexus 9 and 10 inch tablets values-sw600dp: that's for 7 to 8 inch tablets values-sw360dp: that's for small

Android layout with sw600dp and sw720dp

大兔子大兔子 提交于 2019-12-03 08:51:25
问题 I want to support 600dp screen in my android application. So i have made that layout using layout-sw600dp . But i cannot get the exact layout with the application. I got 800 X 1280 screen size with layout-sw720dp but layout is little bit worse with 720 X 1280 size. So what can i do to support 720 X 1280 in layout-sw720dp and 600 X 1024 in layout-sw600dp ? 回答1: For tablets you can just create the layout and drawable with following qualifiers layout-sw600dp drawable-sw600dp which means tablet