The shortcut key of AndroidStudio.
Prompt
Ctrl + P method parameter promptCtrl + space code promptCtrl + Shift + Space provides Smart prompts in many casesCtrl + Alt + Space class name or interface name prompt
View
Alt + 1 quickly open or hide the
10 suggestions for efficient Android App development and androidapp10 Development
If you want to make the most failed case on Google Play, the best secret is that the interface is extremely slow, consumes power, and consumes memory. Next, you will
Error reported when Android: src = "@ drawable/ic_launcher" is used in android Studio.
Today, I tried to install Android Studio. The interface is indeed good, and the list and everything have changed a lot.
Then create a new project and add a
Code setting style of ActionBar and menu in Android
This article mainly introduces the ActionBar and menu code settings for Android. For more information, see
Xml Code of menu
?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
Android ActionBar and menu code settings style, androidactionbar
Xml Code of menu
1 2 3 4 8 9 14 15 16 21 25 29
Overflower Menu icon display implementation in Menu [rewrite the onMenuOpened method and use the reflection principle]
1/** 2 *
SoundPool and audiofocus, soundpool
Audiofocus test:Use soundPool to write a porject for playing audio.Resource Initialization:
setContentView(R.layout.activity_main); Button bt1 = (Button)findViewById(R.id.bt1); Button bt2 =
HTML5 HybridApp Development Guide, html5hybridapp
Currently, our project is a Hybrid App developed based on AngularJS and ionic frameworks. It supports android phone/pad, iPhone, and iPad versions. Because the technology used is a bit new, we have
IOS timestamp string NSdate conversion demo, iosnsdate
1. In projects, we often need to convert the time format. The following is my encapsulated NSDate + TimeCategory, hoping to help you.
# Import @ interface NSDate (TimeCategory)/*** convert
Android and android Official Website
Reference link:
Http://blog.csdn.net/imdxt1986/article/details/6952943
Set animation effects for controls
1. You can set it in an xml file;
2. You can set it in java code.
First, create slide_right.xml In the
Android: Memory leakage caused by Handler usage, androidhandlerProblem description
Once upon a while, when we used the original Handler method, we had the following Warm prompt:
This Handler class should be static or leaks might occur
The following
Use of various drawable in Android
In fact, the use of these drawable is not difficult, and you do not need to go to Baidu or Google to find the answer, just try it yourself.
For example, what is the specific size of the ic-launcher icon? If
Android native JSON generation and resolution JSON
JSON data is a lightweight data exchange format. It is usually used in Android for data transmission between client and server interactions. For example, there are many jar packages for parsing JSON
Android eclipse project R file cannot be generatedI believe many people have found many solutions online,
Android cannot generate R files, which is a pain point. Even if your xml file is not incorrect, it cannot be generated. To address this problem,
Android Studio tool window floating and layout restoration, androidstudio
The tool windows of Android Studio can be changed to floating windows. If multiple Monitors exist, this mode is very convenient. The method is as follows:
Then, you can
Unity3D, unity
Recently, Unity3D provides Time. timeScale support for animation and special effects during combat. However, timeScale provides global time scaling, and some of our actions or animations do not want to be slowed down by timeScale.
Android: Custom Composite Control Weight (bottom menu bar of the imitation Cat's Eye) and androidweight
In our actual development, we will encounter some interfaces with similar or identical layout structures, such as the application setting
Elegant App exit solution (no memory leakage risks) and app risks
In the process of Android development, especially when there are many interfaces, the application cannot be completely exited in the usual exit mode, and there are many exit schemes
Use of the UICollectionView set view, uicollectionviewDirectly run the Code:
//// RootViewController. m /// # import "RootViewController. h "# import" CollectionViewCell. h "@ interface RootViewController () @ property (nonatomic, retain)
UISlider, UISliderDirectly run the Code:
/* UISlider */UISlider * slider = [[UISlider alloc] initWithFrame: CGRectMake (30,300, CGRectGetWidth (self. view. bounds)-60, 30)]; // you can specify the minimum slider of the slider. minimumValue = 0; //
Code beautification and html code beautificationBeautify code Spaces
Four spaces are used for indentation. Never use tab. Make sure that you set it in Xcode settings.
Method braces and other braces (if/else/switch/while) Always starts on the same
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.