1. Onclick property specification
public class FirstActivity extends AppCompatActivity
protected void onCreate(Bundle savedInstanceState)
public void welcome(View view)
Posted on Mon, 15 Jul 2019 09:59:34 -0700 by advancedfuture
1. Introduction to EventBus
EventBus is a lightweight framework for Android event publishing/subscribing developed by Green Robot. It has the following characteristics: concise code and is a publishing and subscribing design pattern (observer design pattern).
EventBus can replace Android's traditional Intent, Handler, Broadcast or interface fun ...
Posted on Sun, 14 Jul 2019 16:47:55 -0700 by sunnyk
Android-Asynchronous Message Processing Mechanism 2 and Introduction to Handler Thread
Android's asynchronous message processing mechanism was introduced in the last article. Here are some supplements. Let's talk about message processing in multithreading and Handler Thread. If you don't know much about handler's mechanism, you can read the pre ...
Posted on Sun, 14 Jul 2019 10:33:36 -0700 by coreyp_1
Reprint address: http://blog.csdn.net/yuanzeyao/article/details/52822315
Fragment is introduced in Android 3.0 to facilitate screen adaptation. Although it was launched earlier, there are many Bugs in Fragment itself and it is much more complex than Activity, so there are not many students who really grasp the operation mechanism of Frag ...
Posted on Sat, 13 Jul 2019 11:39:58 -0700 by ryochiji
There has been no update since I was preparing to jump.However, from this month on, I will continue to record some pits I encountered in android development or write interesting articles.I hope you continue to pay attention to it.Okay, get to the point.
This time I started to get to know something about Camera, so I decided to ...
Posted on Sat, 13 Jul 2019 09:17:40 -0700 by CSB
Reprinted from: http://blog.csdn.net/jiangxuqaz/article/details/51707031
Fragment ov ...
Posted on Fri, 12 Jul 2019 16:51:51 -0700 by soul
We know that android sdk has a v4 package, which, like v7, is mainly used to implement low-level version compatibility of some functions. The official launch of Fragment is after 3.0. If we want to be compatible with Android version 1.6, we need to use Fragment in v4 package.
Let's first see which packages need to be imported for normal use ( ...
Posted on Fri, 12 Jul 2019 12:40:18 -0700 by TomatoLover
When it comes to web libraries, you think of Google's HuttpUrlConnection and Apache's HuttpClient.
Google recommends using HttpUrlConnection instead of HttpClient
HttpClient has been discarded in Android6.0 (Tucao: obviously HttpClient is more powerful).
To see why HttpClient was abandoned, you can see Why did Google recommend using HttpURLCon ...
Posted on Fri, 12 Jul 2019 12:28:34 -0700 by renekosterman
Reproduction: Android Custom Star Rating Control
Source code: http://download.csdn.net/detail/a756213932/9579325
The design of star rating control is as follows:
Two pictures are needed, one bright star and one empty star; (of course, pictures are not necessarily stars, other pictures are okay, just use stars for the experiment now.) The n ...
Posted on Fri, 12 Jul 2019 11:35:06 -0700 by sarijit
The example is a common pull-down rebound in which the entire layout slides together as the fingers slide down. When pulled down to a certain distance, the layout will automatically rebound to the starting position; when the finger slides up, the sub-View of the layout will slide to the bottom, then the finger slides down agai ...
Posted on Fri, 12 Jul 2019 11:14:30 -0700 by mk_silence