Android interface size specification

Such mobile phones include vivo smart cash registers, Samsung Galaxy A5, Huawei Honor and other mobile phones.

The screen size of such a mobile phone is: 5 inches, that is, the diagonal of the screen is 5 inches.

Calculation method: 1280 square + 720 square = 2156800, the result is then squared = 1468.6048, then ÷ 5, = 293.72 points per inch.

Under the resolution of 1280*720px, 1dp=2px For all sizes, please refer to: Device Metrics

But not all 5-inch mobile phones have a resolution of 720*1280, and there are also 1920*1080. Remember.

720*1280 means that xhdpi is twice as much as hdpi. Equivalent to 2 times the cut graph of ios apple 6. is universal.

There is no clear regulation on the size of the navigation bar, toolbar, etc. in the android specification.

Part 1: Layout Specifications of 720*1280

According to the 48dp principle and the screenshot analysis of some mainstream android applications, summarize the size requirements:

Status bar height:  50 px

Navigation bar, action bar height:  96 px=48dp x 2

Main menu bar height:  96 px

Content Area Height:  1038 px (1280-50-96-96=1038)

Android's recent mobile phones have almost removed the physical keys, moved the function keys to the screen, and the height is the same as the menu bar: 96 px

Mobile Interface Dimensions Interface Design User Interface Design

Part 2: Icons and Font Sizes (from the official spec document)

a. The startup icon (home page or app list page) is a complete icon with an overall size of 48 x 48 dp and no blank area. Of course, it can also be an icon containing a blank area equal to 48DP.

Mobile Interface Dimensions Interface Design User Interface Design

At the same time, you need to look at this picture: 48dp represents the range of touch:

Mobile Interface Dimensions Interface Design User Interface Design

b. The action bar icon represents the most important icon that the user can use in the app

The overall size is 32 x 32 dp, the actual area of ​​the graph is 24 x 24 dp

Mobile Interface Dimensions Interface Design User Interface Design

c. Small icons/scene icons that provide status of actions or specific items.

For example, the star mark of the gmail app, the downward and upward icons used to expand and collapse some content, etc. The overall size is 16 x 16 dp and the actual area of ​​the graph is 12 x 12 dp.

Mobile Interface Dimensions Interface Design User Interface Design

d. Notification icon

If the app has notifications, provide a notification icon to display in the status bar when there are new notifications. The overall size is 24 x 24 dp and the actual area of ​​the graph is 22 x 22 dp.

Mobile Interface Dimensions Interface Design User Interface Design

Note: The size unit provided by the android specification is dp. If the size of the design draft is set to 720 x 1280, the size of the icon needs to be multiplied by 2 on the size number required by the specification. For example, if the action bar icon is 32 x 32 dp, it should be 64 x 64 px on the design draft.

e, font size

The requirements in the Android specification are as follows:

Mobile Interface Dimensions Interface Design User Interface Design

As mentioned earlier, the font size unit in Android development is sp, and the conversion relationship is sp*ppi/160 = px. Therefore, on the design draft of 720 x 1280 size, the font size can be selected as 24px, 28px, 32px and 36px, which is mainly selected according to the importance of the text. In special cases, larger or smaller fonts may also be selected.

f. Other size requirements

Usually 48dp is the standard for touchable UI elements. The principle of 48dp law in APPUI design

Mobile Interface Dimensions Interface Design User Interface Design

Why use 48dp? Generally speaking, 48dp translates to a physical size of about 9mm. A target size of 7-10 mm is generally recommended so that the user's fingers can accurately and comfortably touch the target area.

If you design elements that are at least 48dp high and wide, you can guarantee:

(1) The touch target will never be smaller than the recommended minimum target (7mm), no matter what screen it is displayed on.

(2) A good balance is achieved between the overall information density and the touch target size.

Also, the white space between each UI element is usually 8dp.

The third part, android's button and pop-up layer design specification reference.

On the 720 x 1280 px design draft, there are two buttons (such as login and registration) placed side by side. The minimum size of the buttons is 240 x 80 px, which is 120 x 40 dp when converted to android development units.

Mobile Interface Dimensions Interface Design User Interface Design

This time, I will share these with you. If there are any mistakes, please feel free to leave a message below. This is only a reference design factor in mature cases.

Such mobile phones include vivo smart cash registers, Samsung Galaxy A5, Huawei Honor and other mobile phones.

The screen size of such a mobile phone is: 5 inches, that is, the diagonal of the screen is 5 inches.

Calculation method: 1280 square + 720 square = 2156800, the result is then squared = 1468.6048, then ÷ 5, = 293.72 points per inch.

Under the resolution of 1280*720px, 1dp=2px For all sizes, please refer to: Device Metrics

But not all 5-inch mobile phones have a resolution of 720*1280, and there are also 1920*1080. Remember.

720*1280 means that xhdpi is twice as much as hdpi. Equivalent to 2 times the cut graph of ios apple 6. is universal.

There is no clear regulation on the size of the navigation bar, toolbar, etc. in the android specification.

Part 1: Layout Specifications of 720*1280

According to the 48dp principle and the screenshot analysis of some mainstream android applications, summarize the size requirements:

Status bar height:  50 px

Navigation bar, action bar height:  96 px=48dp x 2

Main menu bar height:  96 px

Content Area Height:  1038 px (1280-50-96-96=1038)

Android's recent mobile phones have almost removed the physical keys, moved the function keys to the screen, and the height is the same as the menu bar: 96 px

Mobile Interface Dimensions Interface Design User Interface Design

Part 2: Icons and Font Sizes (from the official spec document)

a. The startup icon (home page or app list page) is a complete icon with an overall size of 48 x 48 dp and no blank area. Of course, it can also be an icon containing a blank area equal to 48DP.

Mobile Interface Dimensions Interface Design User Interface Design

At the same time, you need to look at this picture: 48dp represents the range of touch:

Mobile Interface Dimensions Interface Design User Interface Design

b. The action bar icon represents the most important icon that the user can use in the app

The overall size is 32 x 32 dp, the actual area of ​​the graph is 24 x 24 dp

Mobile Interface Dimensions Interface Design User Interface Design

c. Small icons/scene icons that provide status of actions or specific items.

For example, the star mark of the gmail app, the downward and upward icons used to expand and collapse some content, etc. The overall size is 16 x 16 dp and the actual area of ​​the graph is 12 x 12 dp.

Mobile Interface Dimensions Interface Design User Interface Design

d. Notification icon

If the app has notifications, provide a notification icon to display in the status bar when there are new notifications. The overall size is 24 x 24 dp and the actual area of ​​the graph is 22 x 22 dp.

Mobile Interface Dimensions Interface Design User Interface Design

Note: The size unit provided by the android specification is dp. If the size of the design draft is set to 720 x 1280, the size of the icon needs to be multiplied by 2 on the size number required by the specification. For example, if the action bar icon is 32 x 32 dp, it should be 64 x 64 px on the design draft.

e, font size

The requirements in the Android specification are as follows:

Mobile Interface Dimensions Interface Design User Interface Design

As mentioned earlier, the font size unit in Android development is sp, and the conversion relationship is sp*ppi/160 = px. Therefore, on the design draft of 720 x 1280 size, the font size can be selected as 24px, 28px, 32px and 36px, which is mainly selected according to the importance of the text. In special cases, larger or smaller fonts may also be selected.

f. Other size requirements

Usually 48dp is the standard for touchable UI elements. The principle of 48dp law in APPUI design

Mobile Interface Dimensions Interface Design User Interface Design

Why use 48dp? Generally speaking, 48dp translates to a physical size of about 9mm. A target size of 7-10 mm is generally recommended so that the user's fingers can accurately and comfortably touch the target area.

If you design elements that are at least 48dp high and wide, you can guarantee:

(1) The touch target will never be smaller than the recommended minimum target (7mm), no matter what screen it is displayed on.

(2) A good balance is achieved between the overall information density and the touch target size.

Also, the white space between each UI element is usually 8dp.

The third part, android's button and pop-up layer design specification reference.

On the 720 x 1280 px design draft, there are two buttons (such as login and registration) placed side by side. The minimum size of the buttons is 240 x 80 px, which is 120 x 40 dp when converted to android development units.

Mobile Interface Dimensions Interface Design User Interface Design

This time, I will share these with you. If there are any mistakes, please feel free to leave a message below. This is only a reference design factor in mature cases.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325958724&siteId=291194637