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 custom underline-free ClickableSapn hyperlink text style, hyperlink style underline
Recently, when making comments, you need to implement this effect. Baidu has a website, that is, to customize a class to inherit from 4 ClickableSpan, and
Android day 5 --> create a custom control, android day 5
1. iPhone-like style. Place a title bar on the top of the interface.
The title bar layout has been completed, and the rest is how to use this title bar in the program.
// you only
Singleton mode-detailed explanation of practical application and Singleton practice
Concept of Singleton Mode: Make sure that a class has only one instance and the instance is self-instantiated and provided to the entire system.There are
Android open-source project weekly report 0405, Android open-source project 0405
The android open-source project weekly No. 15th, which was produced by OpenDigg, is coming. Our open-source weekly report on Android integrates the high-quality
Order process view, order view
Activity_main.xml
Arrays. xml:
the order has been submitted paid the merchant has received the order delivered
Activity:
public class MainActivity extends AppCompatActivity { private
XamarinAndroid automatically binds the View variable and xamarinandroidview
In Android programming, we must use the FindIdByView function. This is also required in Xamarin Android development. This job is boring and annoying. In conventional Android
Application, applicationform
Base class for maintaining global application state. You can provide your own implementation by creating a subclass and specifying the fully-qualified name of this subclass as the "android:name" attribute in your
The Android system exits unexpectedly.
The Android system "abnormal exit of the program" has a negative impact on the user experience of the application. You can inherit the UncaughtExceptionHandler class to capture exceptions during application
OnTouch and onTouchEvent, ontouch
1. onTouch and onTouchEvent are both called in dispatchTouchEvent (). onTouch takes precedence over onTouchEvent. If the onTouch method returns true to consume the event, the onTouchEvent will not be executed. In
Java reflection is used in Android, and java reflection android
Reprinted please indicate the source: http://www.cnblogs.com/cnwutianhao/p/6606687.html
If you want to call A private Method B in Class A and use it in class C. Generally, direct call
Android context and androidcontext
Context:
1. It describes the information of an application environment, that is, the context.2. This class is an abstract class. Android provides the specific implementation class of this abstract class.3. We can
ViewPager + fragment how to refresh the cache fragment and viewpagerfragment
Recently, I was working on a project. One function was to flip the pages of answers. Therefore, the next page needs to be cached on this page.
I used
The
Use of the memory analysis tool MAT and the memory analysis tool mat
1. Basic Introduction
The Dalvik Debug Monitor Server (DDMS) is part of the ADT plug-in. There are two functions available for memory check:
· Heap view heap allocation
·
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