tablet

How to include 10“ and 7” layouts properly

眉间皱痕 提交于 2019-11-26 18:51:42
问题 Nexus 7: 7" 1280x800 Galaxy tab 10.1 10" 1280x800 I want my app to run on 7 and 10 inch tablets. As far as I know, I have to include these layout folders in my app: for 7 inch tablets layout-sw600dp layout-sw600dp-port for 10 inch tablets layout-sw720dp layout-sw720dp-port It runs fine on the nexus 7, but loads the sw600dp layouts on the 10" tablet. If I include these default folders: layout layout-port 10" galaxy tab loads layouts from these. If I only include the default layout folders and

App not compatible with tablet

坚强是说给别人听的谎言 提交于 2019-11-26 18:22:39
问题 I've build an Android app...for phones...but I wouldn't mind to broaden my audience and let Tablet owners download it as well.... To be honest. it doesn't look very neat on a tablet...but I don't really mind that. I'll at least give them the option. unfortunately I cant find the app on the Google Play Store / Android Market with my tablet! when I launch the url directly in the browser, I am being redirected to the Play store, but it says "this app is not compatible with your device" I didn't

Navigation Drawer: set as always opened on tablets

两盒软妹~` 提交于 2019-11-26 18:21:33
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? Based on the idea of larger devices could have different layout files, I have created the follow project. https://github.com/jiahaoliuliu/ABSherlockSlides HighLights : Since the drawer of a large device is always visible,

Make android app not availble for tablets

泄露秘密 提交于 2019-11-26 16:06:49
问题 I am publishing my app in the Play store and i don't want it to be available for tablets. How can i make it happen? I don't want to manually exclude every single tablet within the developer console of android but i really need my application to run exclusively on smartphone. EDIT: I did as you suggested but here's the result: And for further explanation: i need my app to run on devices that normal people call smartphone and not on devices that normal people call tablets... e.g. it has to run

Using Modernizr to test for tablet and mobile - Opinions wanted

。_饼干妹妹 提交于 2019-11-26 15:52:27
问题 I want to use Modernizr to detect whether a user is view a site on a desktop, tablet or mobile device. My initial first thoughts are obviously to check screen sizes that should be enough for mobile devices and also for larger desktops. For tablet devices where the screen size could also equal that of a small desktop screen (1024 x 768) I would test for touch events as well. At this time I would like to focus on mobile/tablet devices that, as jQuery mobile puts it are, A-grade. I am not

Is there a way to hide the system/navigation bar in Android ICS

一笑奈何 提交于 2019-11-26 15:28:26
问题 I'd like to extend the discussion regarding hiding of the system/navigation bar at the bottom of the screen on Android Ice Cream Sandwich (4.0 and up) tablet devices. There's already a thread ( Is there a way to hide the system bar in Android 3.0? It's an internal device and I'm managing navigation ) about hiding the bar on Honeycomb devices. My clients, however, will be using the newest Ice Cream Sandwich devices and are very keen on hiding the bar at the bottom the screen. Their application

How to detect the device orientation using CSS media queries?

我们两清 提交于 2019-11-26 15:04:38
问题 In JavaScript the orientation mode can be detected using: if (window.innerHeight > window.innerWidth) { portrait = true; } else { portrait = false; } However, is there a way to detect the orientation using CSS only? Eg. something like: @media only screen and (width > height) { ... } 回答1: CSS to detect screen orientation: @media screen and (orientation:portrait) { … } @media screen and (orientation:landscape) { … } The CSS definition of a media query is at http://www.w3.org/TR/css3

Designing Android apps for tablets

强颜欢笑 提交于 2019-11-26 12:05:29
问题 In the Play developer console it says: Your APK does not seem to be designed for tablets But I have added layouts to layout-sw600dp , layout-sw600dp-land , layout-sw720dp and layout-sw720dp-land folders. The complete manifest (as it is): <?xml version=\"1.0\" encoding=\"utf-8\"?> <manifest xmlns:android=\"http://schemas.android.com/apk/res/android\" package=\"com.technicosa.unjumble\" android:versionCode=\"1\" android:versionName=\"1.0\" > <uses-sdk android:minSdkVersion=\"9\" android

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

拥有回忆 提交于 2019-11-26 11:19:22
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" /> <!-- all large size screens --> <screen android:screenSize="large" android:screenDensity="ldpi" /> <screen android

Android: allow portrait and landscape for tablets, but force portrait on phone?

六眼飞鱼酱① 提交于 2019-11-26 09:33:22
I would like tablets to be able to display in portrait and landscape (sw600dp or greater), but phones to be restricted to portrait only. I can't find any way to conditionally choose an orientation. Any suggestions? Brian Christensen Here's a good way using resources and size qualifiers . Put this bool resource in res/values as bools.xml or whatever (file names don't matter here): <?xml version="1.0" encoding="utf-8"?> <resources> <bool name="portrait_only">true</bool> </resources> Put this one in res/values-sw600dp and res/values-xlarge: <?xml version="1.0" encoding="utf-8"?> <resources> <bool