"Go" app interface transduction naming and file collation specification

Source: Internet
Author: User

Transferred from: http://www.chinaz.com/design/2015/0908/443732.shtml

The naming of the specification can improve client programmer's development efficiency and team collaboration. Personally think the identifier naming principle: As far as possible with the fewest characters and can fully express the meaning of identifiers.

Transduction three principles of naming English abbreviations:

1 shorter words can be abbreviated by removing "vowels"

2 longer words are desirable for the first few letters of a word to form abbreviations

3 In addition, there are some conventions idiomatic the English word abbreviation.

Part I: IOS app interface design transduction naming conventions

Above transduction naming specification infographic Source: http://www.zhangruisheng.com/post/e5517_260065b thank met for their selfless sharing.

Part II: Mobile app transduction file arrangement and skill sharing

The third part: Android coding specifications recommended 18, very good!

For mobile app designers and Android engineers to read.

Chinese is not present in 1.java code, the maximum number of comments can appear in Chinese

2. Local variable naming, static member variable naming

Can only contain letters, the first letter of the word is uppercase, all the other letters are lowercase

3. Constant naming

Can only contain letters and _, all uppercase letters, between words separated by _

4. Image as many reusable pictures as possible

5. The server can be implemented, do not put on the client

6. Refer to third-party libraries be cautious, avoid the application of large-capacity third-party libraries, resulting in a very large client package

7. Handle the application of global exceptions and errors and send errors to the server by mail

8.9 Processing of pictures.

9. Use static variable mode to realize the sharing between interfaces be careful

10.Log (System name Module name Interface name, detailed description)

11. Unit Test (logic test, Interface test)

12. Do not reuse the handler of the parent class, the handler of a class should not be used for its subclasses, or it will cause message.what conflicts

Handle all logic in a view.onclicklistener in 13.activity

Using%1 $ s in 14.strings.xml to implement string wildcard

15. If more than one activity contains common UI processing, you can refine a commonactivity, call the generic part to handle it, and other activity just inherit it

16. When using Button+activitgroup to implement the tab effect, use button.setselected (true) to ensure that the button is selected and that the current activity of activitygroup corresponds

17. If you are developing a generic component, to avoid conflicts, add a prefix to the file name in the Drawable/layout/menu/values directory

18. The data must be validated, for example: character type to digital type, if the conversion failure must have a default value; service-side response data is valid judgment

If you're new to the app designer, you can take a look at the slice file naming specification on the iOS side.

1, we use the size of the iphone 6 (750px/375pt) as a benchmark design, we usually need to cut two sets of drawings when cutting. The transduction resources are @2x and @3x respectively.

The detailed iOS tile file naming specification is as follows:

2. Common interface, control, function, state named collection:

App product managers, app designers, app development engineers, including file naming conventions that H5 front-end developers can remember.

Very complete app element transduction in both English and Chinese comparison tables.

"Go" app interface transduction naming and file collation specification

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.