tablet

Navigation Drawer: set as always opened on tablets

自作多情 提交于 2019-11-26 08:54:55
问题 I am using the Navigation Drawer pattern from the support library: http://developer.android.com/training/implementing-navigation/nav-drawer.html I was trying to set it as always opened on tablet (as a side menu) Is that something possible with the current implementation, or do we have to create a new layout and a new structure with a Listview instead of reusing the same code? 回答1: Based on the idea of larger devices could have different layout files, I have created the follow project. https:/

Layout for tablets in Android

巧了我就是萌 提交于 2019-11-26 08:47:45
问题 I would like to create different layouts for tablets and handsets in Android. Where should I put the layout resources in order to make this differentiation? 回答1: I know this is an old question, but for the sake of it... According documentation, you should create mutiple asset folders like this res/layout/main_activity.xml # For handsets (smaller than 600dp available width) res/layout-sw600dp/main_activity.xml # For 7” tablets (600dp wide and bigger) res/layout-sw720dp/main_activity.xml # For

Why my App is not showing up on tablets in Google Play?

 ̄綄美尐妖づ 提交于 2019-11-26 02:19:56
问题 I just released my app for phones and tablets but it is not showing up in Google Play for tablets. Checked on Nexus 7 and Asus eeeePad This is what I have in my manifest file <compatible-screens> <!--no small size screens --> <!--Only hdpi and xhdpi for normal size screens --> <screen android:screenSize=\"normal\" android:screenDensity=\"mdpi\" /> <screen android:screenSize=\"normal\" android:screenDensity=\"hdpi\" /> <screen android:screenSize=\"normal\" android:screenDensity=\"xhdpi\" /> <!

Tablet or Phone - Android

大憨熊 提交于 2019-11-25 23:21:00
问题 Is there a way to check if the user is using a tablet or a phone? I\'ve got problems with my tilt function and my new tablet (Transformer) 回答1: As it has been mentioned before, you do not want to check whether the device is a tablet or a phone but you want to know about the features of the device, Most of the time, the difference between a tablet and a phone is the screen size which is why you want to use different layout files. These files are stored in the res/layout-<qualifiers>

Media Queries: How to target desktop, tablet and mobile?

蹲街弑〆低调 提交于 2019-11-25 22:55:07
问题 I have been doing some research on media queries and I still don\'t quite understand how to target devices of certain sizes. I want to be able to target desktop, tablet and mobile. I know that there will be some discrepancies but it would be nice to have a generic system that can be used to target these devices. Some examples I have found: # Mobile only screen and (min-width: 480px) # Tablet only screen and (min-width: 768px) # Desktop only screen and (min-width: 992px) # Huge only screen and