Android learning summary (1)

Learning journey

It’s been a long time since I started learning android on the first day. In the process of my own learning, I also felt the charm of exploring knowledge. I also enjoy my learning process and the accumulation from scratch.

The field of Android may be considered a relatively unfamiliar field to me. The only place that may be considered relevant is probably that I have learned the basics of Java and know a little bit of Java programming, but it is not very proficient.

But when I first started contacting Android, although I didn't quite understand the operating theory, when the code I wrote was displayed on the phone, I seemed to open a new world. I started to want to understand this subject, I want to learn how to make a page on a mobile phone perfectly, and learn how the functions on a mobile phone are realized.

After studying for a period of time, I gradually understood the basic operation of this course and some of its skills. I have also improved in the learning process, and I hope that in the next learning process, I can become more and more comfortable.

Android studio tips

1. Complete a code

If we call a method and pass parameters to the method, if we want to end the statement at this time, we will use the mouse or arrow keys to move the cursor to the end of the line and enter; then press Enter to end. In order to be more convenient and quick, so here is a combination of shortcut keys to complete the basis code:Ctrl+Shift+Enter

2. Open the document

The document is the most important object of our study, and the first thing to think of when encountering a problem should be the document. The default shortcut keys for opening documents are:Ctrl+Q

3. Prompt method parameters

Sometimes we forget what type of parameter this method needs to pass in by writing. At this time, we can use the shortcut key:Ctrl+P

4. Copy the code

Select your code and press the shortcut key:Ctrl+D

5. Open files quickly

When we need to open a file in the project, we can use shortcut keys
Ctrl+Shift+NOpen the search box and enter the file name and press Enter

6. Override the parent method

hot key:Ctrl+O

7. Safe Rename

Just move the cursor to the place to be renamed and press the shortcut key:Shift+F6, This time you will be prompted to enter a new name, and then the system will search to find all variables or methods with the same name, and then prompt the user

8. Find the use method, or class

When the project is relatively large and the Activity has been refactored, or when other codes are maintained, many times we need to know where a method is called. At this time, you can use the shortcut keys:Alt + F7To find all the places where this method is used.

Guess you like

Origin blog.csdn.net/weixin_46705517/article/details/112817761