, the upper and lower keys select an item that returns a Boolean, and the exclamation point automatically takes the reverse:Ctrl+enter: In the auto-match drop-down list, the first item is selected by default when no item is selected.Ctrl+shift+a: Quickly find the menu in Android Studio.CTRL + N: Quick Find class name, fileCtrl+b: Jump directly to the definition of a class, method, member variable. Same as C
The first thing I usually use:Ctrl+alt+space (SPACEBAR) * Code hints for divine skill, although Android Studio has integrated but still manually cool someAlt+↑: The line of code where the cursor is located moves upwardsAlt+↓: The line of code where the cursor is located moves downALT+SHIFT+↓/CTRL+C: Copy cursor line code to next lineCtrl+d: Delete the line of code where the cursor is locatedCtrl+x: The line of code where the cursor is clipped Other c
) Option +/ : Code Helper completes some code insertion (commonly known as "smart tip") Command + Shift + E: Displays the manager that manages all the view currently open Command + J: Forward incremental lookup (after pressing Command + j, Each letter editor you enter provides a quick match to navigate to a word, if not, it is not found in Stutes line) Command + SHIFT + J: Reverse incremental Find Command + SHIFT + W: Turns off all open editer Command + SHIFT + X: Turns the currently selec
1. Format code:
Command
shortcut Keys
Merge code into a single line
Ctrl + Shift + J
Formatting
Ctrl+alt+l
2.API function Parameter tip: Double-click to select the function you want to prompt, and then press F2 to show how the function is u
Android Studio shortcut keys# idea shortcut keysDescription: Italic text indicates that there is no effect when the test is not effective or when there is no pre-condition when the test is not achieved.# # IDEKey | description---|---f1| Helpalt+f1| find the directory where the files are locatedalt+1| quickly open or hide the engineering panelctrl+alt+s| Open the Settings dialog boxalt+home| Jump to navigati
shortcut Keys
function
Alt + Enter
Importing packages
Ctrl + Alt + L
Formatting code
Ctrl + Alt + O
Optimizing Imported Packages and classes
Alt + Insert
Inserting code (such as the Get/set method)
Ctrl + E or Alt + Shift + C
View recently changed code
Ctrl + F
Find text
, resource ID is called.+shift Ctrl + Alt + IReview the project. Pressing CTRL +shift + ALT + I will pop up the entry box for the search review entry, and the input keyword can retrieve what needs to be reviewed, such as entering unused resource to search for resource files that are not used in the project. In addition, the project can be lint reviewed by selecting Analyze-inspect code or right-clicking on the current project-analyze-inspect code in the menu bar.Ctrl + DQuickly copy rows.The.Ctr
Universal Prompt Key
Alt+enter
Generate Main function
Ctrl+j
System.out
Sout then tab
Formatting
Ctrl+alt+l
and QQ conflict
Generate Get+set
Alt+insert like Ctrl + Alt +s
Build method
Ctrl +alt+m seems to be in conflict
Fast generation of tag pairs in XML
Enter the label content, and then p
Alt+h: Find function, global findF4: Viewing class inheritance RelationshipsCtrl+e: View recently opened filesCtrl+shift+e: View recently edited filesCtrl+shift+r: Quickly navigate to the file you want to open. (You can change the name if you check the name)ctrl+shift+/: module comments, counter-comment and then press once, note that this "/" can not use the keypadCtrl+alt+s: Open the Settings interface (this shortcut is in conflict with the QQ shortc
+ Left/right back to the last viewed location
Ctrl+e or Alt+shift+c recently changed code
Alt+shift+c vs. recently modified code
Moving
The Ctrl+shift+up/down code moves up/down. ---------------
F2 or SHIFT+F2 highlighting error or warning quick location------------
Ctrl+up/down cursor jumps to the first or last line
ctrl+[or] can jump to the beginning of the curly brace
Ctrl+shift+up/down Move Method
Ctrl+p Method Parameter Hints
CTRL + Space Code hints
Ctrl+shift+spac
screen, and try to complete the main tasks in the application with only the direction keys. Use the keyboard and steering wheel in the simulator, or use gesture navigation on devices above 4.1. Note: gestures allow users to get the focus of almost any content on the screen, while the keyboard and steering wheel can only get the focus of the input area and button
An example of this article is an analysis of the Android dial phone function. Share to everyone for your reference, specific as follows:
The phone is one of the most basic features of mobile phones, and now Android smartphones are very popular, with a variety of wonderful phone features, but how does the Android phone
The Android search function saves the search history locally.
The APP developed by my colleague has a search function and needs to display the search history. In my spare time, I helped her develop this function. Now I will extract this page into a demo and share it with you.
Effect:
This case is easy to implement, so
Recently I read about Android Widgets. It seems that widgets are simple and convenient compared with other widgets, making people feel refreshed. According to the official Android website, Widgets are actually a desktop application. It differs from other applications in that it can update content in real time. You just need to manually add it to the desktop, and the code can run. Therefore, it is convenient
Compiling project with Gradle
AVD Manager (Android virtual device image management)
Android SDK Management
Android Device Monitoring
Iv. Other
Description: The terminal panel, like the command line function, can execute some command-line commands.
Description: D
This article analyzes the TextView character filtering function of Android programming. Share to everyone for your reference, specific as follows:
TextView can be set to accept a wide variety of characters, by filtering the specified characters to meet the input and display requirements of different applications.
Through XML configuration:
Android:inputtype
Number accepts integer inputnumbersigned Accep
back to the initial stateNo need to judgeBACKSPACE: When pressed, the last character of the string on the screen will be erased.No need to judgeSubtraction
When pressed, an operation is recorded, the first number on the screen is constant, and if the operator is pressed directly, the first number is the default zero
If the previous operation has already been done and is equal, then when the operator is pressed, the result of the last operation is used as the first number, and the r
Eclipse has a very good function, that is, when your code calls an Android API, the mouse moves to the corresponding function or method, it will automatically have a hangingThe floating window prompts the description of the function (which contains the parameter meaning, the method
This example describes the implementation of the Android return key function. Share to everyone for your reference. Specifically as follows:
In the development of Android applications, often by pressing the return key (that is, keycode = = Keyevent.keycode_back) can close the program, in fact, most of the case did not turn off the application
We can do this, wh
three controls, both sides of the ImageView control, the middle of the EditText control, when clicked on the right to clear the button to clear the contents of the input box, But recently in doing product optimization feeling before the custom control written in the amount of code is a bit wasteful, obviously Android EditText have drawableleft and Drawableright attributes, why not to use it directly? So I drew a picture on the draft paper with a pen,
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.