Review three user-defined view constructor and view Constructor
Public class MyCustomView extends View {// The first constructor public MyCustomView (Context context) {this (context, null);} // The second constructor public MyCustomView (Context
Android: configChanges property Summary,
1. for android: configChanges attributes, it is generally considered as follows:1. When the android: configChanges of the Activity is not set, the life cycle of the screen is re-called, the screen is executed
In-App language switching, app language switching
Reprinted please indicate the source http://www.cnblogs.com/cnwutianhao/p/6746981.html
A few days ago, the customer requested to add a function to the App. This function is now very common on the
Develop Material Design + RxJava + keep fit + MVP App reference materials, rxjavaretrofitPreface collect documents learned during the development of an App based on Material Design + RxJava + fit + MVP framework-shared by G junzi
Here, I recorded
Loader details, asynctaskloader details1. loader API Overview
Class/Interface
Description
LoaderManager
An image class is associated with an Activity or Fragment to manage instances of one or more loaders. This helps an
Android redmi solves the problem of reading images from local folders and obtaining paths,
In Android development, you can read images from local folders. Use the following code to open the image selection list:
Intent intent = new Intent(); intent.
Further research on the onMeasure () method of View, viewonmeasure
In Android development, many people are daunting to customize the View, but this is the only way to go to the advanced level, mainly because they do not know how to understand many
Android development and learning-Implementation of AMAP, android AMAP
1. First, make the following preparations:
1.1 http://lbs.amap.com/registered account
1.2 download positioning sdk and map sdk
This is the case after the download.
1.3
Android devices use usb serial ports to transmit data, android devices use usb serial ports
First, we will introduce two open source projects, one is Google's open source project: https://code.google.com/archive/p/android-serialport-api/
The other
ClipChildren attribute, clipchildren
Code Description:
1. You only need to set android: clipChildren to false on the root node. The default value is true.
2. You can use android: layout_gravity
Android design layout in Arabic interface disorder solution, android Arabic
(1) adding "android: supportsRtl = true" (2) to the application element of the AndroidManifest. xml declaration file.]
How to solve the problem that the layout of android
ButterKnife annotation framework explanation, butterknife annotation framework
Android lazy annotation framework: https://github.com/JakeWharton/butterknife
Preface:
Annotations, I believe many of you have used them. You need to use findViewById ()
Android Studio project slimming, code check, and androidstudio
Project slimming,
1. delete unused resources (images, strings, etc)
First, let's look at how to find the resources that are not used. Note: comments are also useless.
1. Perform
Android M and above runtime permissions (officially released by Google), androidgoogle
Reprinted please indicate the source: http://www.cnblogs.com/cnwutianhao/p/6690152.html
The examples and demos of permissions for running on the Internet are
SetUserVisibleHint -- fragment real onResume and onPause methods, onresumeonpause
More and more applications now use viewpager + fragment to display their content pages. fragment and activity have many things in common, such as the fragment
Common Code blocks and codes
1. Obtain the system version:
PackageInfo info = this.getPackageManager().getPackageInfo(this.getPackageName(), 0);int versionCode=nfo.versionCodestring versionName=info.versionName
2. Obtain system information:
String
UnionPay payment and payment
UnionPay payment(1) UnionPay payment Flowchart (2) download the development kit from the UnionPay developer Platform
(3)install “uppaydemo.apk ". The running effect after installation is as follows:
(4)open Chinese
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