Detailed description of the ten development guidelines issued by Google for Android tablet apps

Detailed description of the ten development guidelines issued by Google for Android tablet apps

Before the release of Nexus 7, the sluggish Android tablet market had always made developers less interested in designing apps for Android tablets. In order to create a high-quality app market for its own tablet business, Google recently issued 10 guidelines for developers to develop apps on Android tablets. The following is a detailed description of these 10 guidelines.

1. Ensure compliance with the general development guidelines of App

Before discussing the development guidelines for Android tablet apps, we must first ensure that the apps comply with the general development guidelines, which are required for all apps on Android devices. In addition, in order to test whether the apps designed by developers comply with these guidelines, developers need to test by simulating the running environment of the apps. Developers also need to pay attention to how to set up the test environment and what specifications the tests should meet.

2. Optimize the App for the large screen size of tablets

If we run an App developed for an Android phone on an Android tablet, it will be stretched and deformed to varying degrees due to the larger screen size. At this time, for some small tablets, such as the 7-inch Nexus 7, developers only need to make appropriate fine-tuning, such as enlarging the font, enlarging the elements, increasing the space between elements and borders (padding), and between elements (margin), etc., to meet the needs.

A few tips on fine-tuning:

  • On tablets, the spacing (padding) between elements and borders is usually wider than the padding on mobile phones, preferably 48dp.
  • The spacing between the content and the edge of the screen should be 16dp
  • Properly adjust the position of control buttons in the interface to facilitate users to operate easily in various usage scenarios

However, for some large tablets, such as the 10-inch Nexus tablet that Google is about to launch, these fine-tuning is useless. For example, a list control can be used with a fine-tuning on a 7-inch tablet, but it will be uglier on a 10-inch tablet after fine-tuning: there may be a large blank space, or the number of words in each column of the list may increase to more than 100 (the number of words per column is preferably 50-75). This kind of stretching deformation in the design should be avoided as much as possible. At this time, the developer should turn waste into treasure and make good use of the extra space to do other things (see item 3).

3. Make good use of the extra space on the tablet

Tablets, especially 10-inch tablets, have a lot more space than mobile phone screens. How can you make good use of the extra space? Here are some suggestions:

  • See if you can add some new content, or present existing content in a different way.
  • Try combining the two interfaces together, or add a navigation bar to make it easier for users to switch between multiple interfaces. Here is an example:

The above picture shows the three interfaces in the mobile app, corresponding to the three levels of navigation, content items, and content. If it is on a tablet, we can merge the three interfaces like this:

  • When designing the code, in addition to treating each page as an Activity subclass, we can also consider dividing the content of the page into sections and making each content section a separate Fragment subclass to improve the reusability of the code.

4. Use specific icons and bitmaps for specific screen densities

In order to achieve the best effect in the App, the button icon or bitmap in the App must match the specific screen density. Therefore, for the same button icon, developers should prepare 4 images for the 4 screen densities of the Android screen.

The following table shows the reference resolutions of 4 typical control buttons corresponding to 4 screen densities:

5. Adjust font size and touch buttons

The font size of all elements on the UI, such as labels and touch buttons, must be adjusted one by one to ensure that there is no gap between words in a label. The standard size of a touch button is 48dp (minimum 32dp). For some specific groups of users, the touch button can be appropriately enlarged. If the icon on the touch button is very small, be sure to center the icon, and at the same time, you can appropriately expand the effective touch area.

6. Adjust the size of desktop widgets

If the developer wants to make a desktop widget for the App, the size of the widget and the range of the widget must be adjusted appropriately according to the screen size to ensure that the App's widget can be stretched to 420dp or above. Ensure that the images contained in the widget can be rendered correctly. Use the system default Margin. Set the targetSdkVersion parameter of the application to 14 or higher.

7. Adjust the App feature set according to the tablet characteristics

Developers, let your users experience the best of your app on tablets! Generally speaking, make sure that the feature set of your app on tablets is at least as large as that on mobile phones. In some special cases, such as hardware support or user usage restrictions on tablets, you can consider removing or replacing certain features.

For example, tablets are different from mobile phones and do not support dial-up services. Therefore, when porting an App on a mobile phone to a tablet, the relevant functions should be removed. In addition, although many tablets have GPS sensors, developers should consider that when users use the GPS function, they are mostly out and about, and at this time, users prefer to use the GPS on a small mobile phone rather than the GPS on a tablet. Therefore, tablet apps do not need to provide a dedicated GPS function.

Finally, if developers omit a feature in the UI design, make sure that users cannot obtain this feature through other means. And, if a feature must be downgraded due to hardware limitations, make sure it is downgraded beautifully.

8. Avoid using hardware features that your tablet may not support

Mobile phones and tablets, and different tablets, may adopt different strategies in terms of hardware support for sensors, cameras, and dialing functions. In order to ensure that the App is as simple and universal as possible, and one APK can handle everything, it is best not to call some hardware functions that may not be available on the tablet. For example, android.hardware.telephony, android.hardware.camera, android.hardware.camera.front. If you must call them, be sure to declare android:required=”false”。

9. Declare the screen size

To ensure that the App can be used on various tablet screens, in the declaration part of the code, various screen sizes must be listed through <supports-screens>元素.

10. Things to note when publishing apps on Google Play

Google encourages developers to release only one APK for all sizes of devices (including mobile phones and tablets). If you have two versions for mobile phones and tablets, don't create two Google Play pages. One is enough, otherwise it will dilute the brand influence.

At the same time, if the app has a tablet version, at least put a photo of the app running on a tablet in the screenshot area of ​​the Google Play page, mention that tablets are supported in the app description, and include footage of the app running on a tablet in the app promotional video.

In addition, developers must use the developer interface provided by Google to check whether your app blocks tablet devices and make sure to remove the blockage. Developers with the ability are advised to promote the tablet version of the app specifically.

via developer.android.com

The article comes from 36kr

<<:  Elderly people with lung disease should have a sputum suction machine at home.

>>:  Mashable: Data explains iOS's "weight gain" process

Recommend

What is endocrine disorder?

Whether the endocrine system is normal is very im...

Amniotic fluid present at 11 weeks of pregnancy

Pregnancy is a very important thing for women. Fr...

How many days after the menstrual period is the safe period

When it comes to pregnancy contraception measures...

What causes nosebleeds in girls?

Nosebleeds are a very common symptom and are also...

How to reduce breast enlargement

Many people's breasts are not very big, so th...

What's going on? My period is eight days late.

Menstruation is a normal physiological characteri...

Where is the bladder located?

The bladder is usually located above the urethral...

What is the cause of leucorrhea after IUD removal?

This situation occurs in patients who have leucor...

Symptoms of insufficient heart yin in women

What is heart yin deficiency? Insufficiency of he...

Lower abdominal pain after going to toilet

Abortion is a method of artificial abortion chose...

What to do if your breast ducts become inflamed

Inflammation of the mammary ducts, also known as ...

How long does it take for postpartum hair loss to return to normal?

After giving birth, mothers need to take good car...

Is it normal to have red urine during pregnancy?

There are many reasons why urine may be a little ...