and white two arrows that overlap together, drag the mouse to the desired position. To replicate more than once, just repeat the relaxed mouse.28. You can use the Marquee tool or lasso tool to drag a selection from one document to another.29. To establish a replication document for the current history state or snapshot:(1) Click the "Create new document from current state" button;(2) Select a new document from the History panel menu;(3) Drag the curr
GitHub good stuff, too much recommended)Here is an introduction to the Readme.md file:CU is the abbreviation for clear unused, which is used to clean up useless code files and resource files in Android projects.cures.java is used to clean up resource files, with the lint tool that comes with the ADT SDK, with a relative path of \sdk\tools\lint.bat. CUSrc.javaFor cleaning. java files, the Eclipse plugin ucdetector mate is required.UsePurging useless
In the daily development, avoid the negligence caused by the anomalies, errors and so on. How do I troubleshoot and track these errors or exceptions in Android?The main ways to track problems are:1. The diagnostic logs tracked in the record stack.2. Debug breakpoints using the debugger.Finally, we introduce Android-specific debugging Tools for Android LintAndroid Lint can check the objects defined in the XML file, so how do you 眻 use Android
: propertyitem *) malloc (totalbuffer ); m_pimage-> getpropertyitem (propertytagframedelay, totalbuffer, m_pitem); m_bstatok = true ;}}
Always draw a method to solve the problem after the problem occurs. The Code is as follows:
Note: m_pstream is a class member and is released during class analysis. pimagedata is of the byte * type and dimagelen is of the DWORD type;If (createstreamonhglobal (null, true, m_pstream) = s_ OK) {ulong ulwritten = 0; m_pstream-> write (pimagedata, dimagelen, ulwrit
-drawing switch in the settings, and the over-drawing of each interface should not exceed 2.5x. That is to say, after enabling this debug switch, the interface is light-colored, especially complex, the red area should not exceed 1/4 of the full screen;
6. lint check:
1) Use Analyze-> Inspect Code in Android Studio to perform static scanning on the project Code, locate potential problematic codes, and modify them;
2) 0 error 0 warning. If it cannot be
The following definition will be an error: Undefined Symbols for architecture x86_64Template classlongint{ Public: T num; Longint (T a=0) {num=A; } Friend Ostreamoperator out,ConstlongintLint); ~Longint () {; }Private:};templateostreamoperator out,ConstLongintLint) { return outLint.num;}Change method One: Change the t of the overloaded operator to s on the line// in-class declaration when template friend ostreamoperatoroutconst longint Lint); // O
When it comes to performance optimization, it usually starts with an optimized layout, and the optimal layout can be done in the following steps:STEP1: Enter the system settings to open the debug GPU over-drawing function, first locate the existing redraw layout;STEP2: the layout with excessive redrawing has been positioned, using lint function detection, quickly remove redundant layout;STEP3: After the first two steps, if there is excessive repaintin
its value toD:\go-work
3. Install git
Download the 64-bit Windows installation package from the https://www.git-scm.com/download/website and install it.
4, Installation Vscode
Download Windows installation package from official website https://code.visualstudio.com/, such as VSCodeSetup-x64-1.25.1.exe .Double-click to install.
5. Change the interface environment to Chinese
Input, enter in the Ctrl + Shift + P command Window lang , select in Find results, Config Display Language Add in open loca
Essential features of the development environment
Project Management
Quick file Jump
Automatic grammar checking
Auto-complete
Find definition
Fast Start-up speed
If you have a need, plug-ins can be written casually
Flexible Run configurations
Big environment
Os x
GO 1.4
HomeBrew
Go Environment installationThis part is the most important, if without it, each build when the appearance of too many errors heart really is very sad.
Private PodsCocoaPods is a great tool does not have adding open source code to your project and also for sharing components across pro Jects. You can use a private Spec Repo to does this.There is a few steps to getting a private pods setup for your project; Creating a private repository for them, letting CocoaPods know where to find it and adding the podspecs to the repository.To work with your collection of private pods, we suggest creating your own Spec repo. This should was in a location that
The project needs to change again, the UI a tune again, the result is a bunch of items in the project has not been used but not clean up the garbage resources, not to mention the project size problem, for the new entry of the person or look at the code of other modules, these clean resources may also be troubled, so it is best to clean up the rubbish, For a slightly larger project, manual cleanup is obviously unrealistic, which requires a way to do these things.I fear the code word, the above co
(GCC 2.6, 2.7), and all versions have the same functions. New kernel Makefiles use-O2, so you should also use-O2.
What is linux/*. h and asm/*. h?
The directory/usr/include/linux/and/usr/include/asm/low files are soft links to the kernel header file, the kernel header file is actually in the directory/usr/src/kernel */down.
How to create a shared function library?
For ELF, the command is as follows:
Gcc-fPIC-c *. c
Gcc-shared-Wl,-soname, libfoo. so.1-o libfoo. so.1.0 *. o
F
..CSS Coding
CSS transform allows you to add CSS styles to any website and share your masterpiece through Transient connections. You can also invite others to help you improve your website. (Note: This tool is immune to Chinese websites )!
Skeleton
Skeleton is an application of CSS and JS, which can be used to quickly develop websites. Whether it's a 17-inch laptop or iPhone, it looks pretty good. .CSS3 Patterns Gallery
CSS3 Patterns Gallery provides various beautiful thumbnails or backgrou
interface is too complex to understand which views are over-drawn and how to improve them.
Lint: Lint is a static code scanning tool that comes with ADT, which provides improved recommendations for XML layout files and unreasonable or risky modules in project code. The official tips on the actual use of Lint are listed below:
Contains useless branc
@SuppressLint ("Newapi") in Android code, we sometimes use the android:minsdkversion that we set in AndroidmanifestVersion of the method, the compiler prompts for a warning when the workaround is to add @suppresslint ("Newapi") or @targetapi () to the method.What's the difference between them, very simple,@SuppressLint ("Newapi") block all new APIs in order to use the method reported by Android Lint error@TargetApi () block only a new API to use the
)
There are some user scenarios in the special test that may also contain other invisible detection dimensions, such as:
OpenGL tracking analysis;
The GPU view update is reasonable;
Flash hardware layer update rationality;
Animation acceleration/deceleration state problem point detection;
......
2.2 Debugging Tools Detecting and resolving interface performance issues is largely dependent on your application architecture, and fortunately, Andorid provides a lot of de
interaction, draw pixels on the screen, and load display related data, so there is a need to avoid any main thread of things, so that the application can maintain an immediate response to user action. Summing up, the main thread to do the following aspects of work:
UI Life Cycle Control
System Event Handling
Message processing
Interface layout
Interface Drawing
Interface Refresh
In addition, you should try to avoid placing other processes in the main thread, pa
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.