Summary of RelativeLayout attributes and relativelayout attributes
First, we will introduce some important attributes used by RelativeLayout:
Category 1: attribute values: true or false android: layout_centerHrizontal horizontal center android:
Use of DrawerLayout and use of drawerlayout
1: The effects of the DrawerLayout sidebar:
2: The following is the XML code for layout. The first element label is the content displayed on the page, and the second element label is used to display the
Frame-by-frame animation
1. This type of animation can create a Drawable sequence, which can be displayed one by one based on the specified time interval.
Xml definition method
1 3 4 5 6
2. frame-by-frame animation is an image created under
Android multi-resolution adaptive SummaryThis week's work adjusted the multi-resolution adaptation of the Android project. Therefore, we are constantly trying to learn this knowledge. At the beginning of the Android project, you must develop
Android automated test script writing
1. Create a new file with the py suffix, such as ***. py
Ii. Import common monkeyrunner packages
From com. android. monkeyrunner importMonkeyRunner, MonkeyDevice, MonkeyImage
3. Waiting for device
Android WIFI Information Retrieval
You can obtain WIFI information in androi through the Wi-Fi Service provided by the system.
[Java]WifiManager wifi_service = (WifiManager) getSystemService (WIFI_SERVICE );WifiInfo wifiInfo =
Android removes the webpage title and sets it as a custom title when developing WebView.
In IOS, just remove the title with two lines of code similar to the following
[Js appendString: @ var title = document. getElementsByClassName ('navbar-top') [0]
MJRefresh Principle Analysis, mjrefresh Principle
MJRefresh is a popular pull-down refresh control. To fix a BUG some time ago, I read its source code. This article summarizes the implementation principles.Basic Principles of pull-down refresh
Most
Enterprise ID development: actively send messages, and enterprises send messages
The primary enterprise ID actively sends messages, that is, the messages actively pushed by the enterprise ID, which is suitable for enterprise notifications and
JSON deserialization open-source library in iOS and iosjson serialization open-source
JSON strings in iOS are deserialized into objects, which are common in formal projects. You can select one of the following frequently used open-source libraries
Android installation and uninstall APK (Intent)
The Intent mechanism is used to call up the installation and uninstall application of the system to install and uninstall the APK.
Install APK
String apkPath = file: //
Android development-specifies the image size when taking photos of the camera class, Android photo development
There are two main ways to implement the camera function in android development:
Directly call the System camera API to take a photo.
Android practice simple tutorial-23rd gun (Baas-based user registration and login module implementation !), Androidbaas
Next, let's take a look at the code in the last two articles based on the APIS provided by Bmob.
1. registration page xml:
Summary of Android engineering Architecture
1. unified management of resource files
Unified management:
String. xml defines common strings, such as the project name, project package name, network link prompt, and text of common buttons. If the
The WatchKit control is superimposed to achieve the effect similar to addSubview, watchkitaddsubview
Recently, I was playing Watch. After studying the layout of watch, I found that the native layout of InterfaceController is only horizontal and
After the project code that uses the afinal annotation is obfuscated, some view click events of some controls are invalid. afinalview
Recently, a project was launched, requiring code obfuscation. After obfuscation, click events of some controls
Optimization of the first startup time of Android: Pre-compilation and extraction of OdexPrompt! There are two scenarios for application installation: first, installation when the system is started for the first time; second, installation after the
Use CSStickyHeaderFlowLayout to implement CollectionView and collectionviewlayout with fixed Headers
Recently, a popular interface effect is the Fixed header of the waterfall stream, also known as sticky header or parallax. For UITableView, table
Modification to HashMap after Android 5.0, androidhashmap
Previously, it was found that the data in HashMap on the Android 5.0 host is different from that in Android 5.0, resulting in an interface in the project being faulty (the interface is cached,
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