The TextView in Android itself supports part of the HTML format tag. This includes commonly used font size color settings, text links, and so on. It's also easier to use, just use the HTML class to convert it. For example:
Textview.settext
Or how to say Android is particularly open, and in Android development, just send a broadcast and it's going to happen.
Needless to say, the following is a piece of code that encapsulates well.
Copy Code code as follows:
public class
Here is the framework, said the point, in fact, not so complex, but an easy to expand the base class just. But at least it's a frame class code.
Copy Code code as follows:
Package Arui;
Import android.app.Activity;
Import
Cross-platform asynchronous invocation between Android and JS
Why the sudden need to do this problem?
It took nearly 1 days to figure out the solution to the problem of dog blood when developing a browser, and Android and Javascirpt were
When do I need looper?
Looper is used to encapsulate the message loop in an Android thread, by default a thread does not have a message loop, and calls Looper.prepare () to create a message loop to the thread, calling Looper.loop () To make the
This is in the understanding of the lower-pull refresh function under the principle of the product, Drop-down refresh can be said to be a domestic app in the necessary functions, even Google for this out of the Swiperefreshlayout, a MD-style
Multi-point touch technology in the actual development process, the most used is to enlarge and reduce the function. For example, there are some image browsers, you can use more than one finger on the screen to operate, to enlarge or shrink the
The main purpose is to press the back button, so that the program can exit.
Realization of the idea:1. When the back key event is caught, it is triggered.
Copy Code code as follows:
@Override
public boolean onKeyDown (int keycode,
Android development through the view of the Getdrawingcache method can achieve the purpose of screenshots, but the lack of status bar!
Original interface
Screenshot to get the picture
Code implementation
1. Add permissions
Dialog is a control that any system must have, as a secondary window for displaying messages, or requesting a user to take an action.
Android is no exception, and basic use may refer to documentation.
Considerations when using1. The back key can
What is SplashSplash is the application started before the start of a screen, the above simple introduction of the application of the manufacturer, the manufacturer's logo, name and version of the information, more than a picture, display a few
Introduction of Asynctask and its basic use methodThe introduction and basic usage of asynctask can refer to the official documentation and the Android development Note: An in-depth understanding of multithreaded asynctask is not repeated here.
A
In Android development, timers typically have the following 3 implementation methods:
a sleep (long) method using handler and threadSecond, the postdelayed (Runnable, long) method using handlerThird, the use of handler and timer and timertask
Today, I sorted out the operation of the input method under Android: specific as followsFirst, open the Input Method window:
Copy Code code as follows:
Inputmethodmanager Inputmethodmanager = (inputmethodmanager) getsystemservice
InAndroidGroup, people often ask me,Android LogHow it's used today I'm going to take it from the Internet as wellSDKIn the patchwork, let everyone first glimpse as fast, I hope to get startedAndroid LogThere is a certain amount of
A descriptionHere the important application class Autotextview, which is a custom class, inherits to Textswitcher, under the face of Autotextview class do a brief description:
1. The focus of this type of application is to set up two animations,
Conversation this class mainly represents the data structure of the dialogue, which holds a thread all the relevant information, such as Recipients,threadid, also used to manage thread, such as query thread, delete thread, update thread , manage
To get straight to the point, adding a watermark is very simple, in fact, there are only 3 steps :
1, load the original picture2, load watermark picture3, save the picture with the watermark
The principle of implementation is: To get the width of
1. Introduction
Recyclerview is a new view group with the goal of providing similar rendering for any adapter based view. It is used as a successor to the ListView and GridView controls and is supported in the latest SUPPORT-V7 version. The
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