The use of Android fragment
1. Use Support Library
If your application needs to run in versions 3.0 and above, you can ignore this part of the content.
If your application uses a version below 3.0, 1.6, or more, you need to use a support library to
For example: To add a button, view to a linearlayout is a button and the parent view is linearlayout. The properties of the child view are set by Layoutparams. Note that the linearlayout.layoutparams, because the height of the child view, the width
When you save the picture after opening gallery, some will automatically refresh you, some do not, so that the picture saved to the SD card, not in time to see in gallery, encountered this situation is best to refresh themselves.
Full SD card
On the basis of custom ViewGroup (5): http://www.jb51.net/article/100639.htm, add the use of adapter to fit the data, which is more convenient, just use the adapter adapter data and cannot be updated.
Package
Apple has always tried to achieve the ultimate in human-computer interaction, in IOS7, a new addition to a small function, Which is the api:self.navigationController.interactivePopGestureRecognizer.enabled = YES;
This API function is in the
Android percent layout
1. Introduction: Compile ' com.android.support:percent:24.0.0 '
2. Point source code can be seen, there are mainly two layout classes Percentframelayout and Percentrelativelayout, a tool class Percentlayouthelper.
3. Point
As a developer, we need to constantly think about the problem from the user's perspective, for example, when the App store downloads software, when the user clicks on the download button, there will be download progress prompts the page appears, now
In an XML layout file, we can set either PX or a DP (or dip). In general, we would choose to use a DP, which would ensure a consistent layout on a machine with different screen resolutions. But in the code, how do you handle it? Many control methods
Analysis of the source before the introduction of the ARRAYMAP storage structure, ARRAYMAP data storage is different from HashMap and Sparsearray.
Java provides hashmap, but HashMap is too much space for mobile phones, so Android offers Sparsearray
When you use ImageView to display images in Android, you find that the picture is not showing, the direction is skewed or upside down.
To solve this problem, it is natural to think of two steps to go:
1. Automatic recognition of Image direction and
Here to write a link to the content of a small gift to give special effects, by the way to review the properties of animation, words do not say that first look at the effect of the picture.
Demand analysis
You can see that the whole animation
Service is neither a process nor a thread, and the relationship between them is as follows:
As you can see, their thread IDs are exactly the same, which confirms that the service is actually running in the mainline Chengri, which means that if
1. Response privileges using Bluetooth
Copy Code code as follows:
2. Configure the native Bluetooth module
Here first to understand the Bluetooth operation of a core class Bluetoothadapter
Copy Code code as follows:
A lot of times we're sensitive. Google follows a large number of MVC architectures when designing Android, allowing it to be independent of writing public code, artwork, and concrete logic developers. How do you implement a formatted string in the
Mediarecorder There's no difference between taping and recording. Set the format of the image
Reference: http://www.jb51.net/article/46182.htm
Instance:
Copy Code code as follows:
Copy Code code as
Hotfix-Tinker, fix-tinker
Open source is a great surprise. You have to check it out. It is much better than nuwa. In addition, there are dedicated official documentation on github, and there are still a lot of data queries.
Reference:
Android mobile GUARD 1-implement the splash page and androidsplash
1. What are the differences between minSdkVersion, targetSdkVersion, maxSdkVersion, and target API level?
MinSdkVersion: maxSdkVersion is the lowest sdk version and the highest
Android countdown and android countdown
Preface
When you open the welcome interface of iQiYi and other apps, there is a countdown control in the upper right corner. After the countdown, enter the main interface. Now let's implement this
Achieve QQ space image preview effect, QQ space image Preview
Today, the project needs to preview images. Similar to the space for deduction, I have found too much code on the Internet, and many classes are comments everywhere. Then I wrote an image
Clear a Fragment in the Fragment rollback stack and clear the fragment rollback
Stack exit method:GetActivity (). getsuppfrfragmentmanager (). popBackStackImmediate (CreateOneFragment. class. getName (), FragmentManager. POP_BACK_STACK_INCLUSIVE
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