Talking about the variable name under the Android button

Source: Internet
Author: User

In general, we can define variables such as Dim a,b,c,d Test code in the Android button when learning knowledge is really enough, but once the script size is larger than the overall script of the process is longer if you use this variable name, a, b c,d is not only easy to repeat the conflict may not be able to see what the hell it is, so We're going to have to name the variables to have a meaning. I'll give you an example of an interface

Let's name the pop-up window in the middle of the interface.

My name is like this.

Multi-point Find color _ low battery mode prompt window =array (0,0,200,200,)

Multi-point Find color _ Login Interface =array (0,0,200,200,)?

Multi-point Find color : Is this variable is used in which to find the color of the command under this variable is used in multi-point to find the color of this command if you are looking for a diagram command then the above variable becomes the [ figure _ Low Battery mode prompt window ]

Low Battery mode tip window: indicates which interface or window's feature parameter this variable is, so we just need to see this low battery mode prompt window to know that this variable is the color information that represents the window in the middle of the graph above

A window or interface or a button or image marker : What window or interface are you representing, or which of the interfaces I'm going to give you the immediate setting button for the window in the middle of the interface to create a corresponding variable how to name it first this button in the low battery mode Prompt window inside and this prompt window is inside the login interface If you're not bothered, you can write that.

Multi-point Find Color _ Login Interface _ low battery mode Prompt window _ set button =array ()

This way of writing can be creating priorities order in your custom variable too much when you see this name can understand which interface he represents which

Talking about the variable name under the Android button

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.