Construction of the robolectric environment and robolectric
Recently I have been studying Test-Driven Development. Test-Driven Development is a method of extreme programming, we recommend that you write the test code as needed before writing the
Upload Android library to jcenterUpload Android library to jcenter
How to upload the developed Android library to the central repository for convenient use by other developers. A line of code is used for dependency without the need to download the
Android_03 _ obtain database information and display it on the Interface
MainActivity. java
This code retrieves data from the database and displays the data on the interface.
Package com. itheima. showdata; import java. util. arrayList; import
Android memory optimization: Handler
Handler is often mentioned in articles to avoid Memory leakage because it is strongly referenced by objects. For example, a Handler object is running in an Activity.
private Handler handler;handler = new
Basic AsyncTask knowledge, asynctask
As we all know, the UI cannot be updated in sub-threads, and an asynchronous message processing mechanism must be used. The general practice is to use Handler to send messages to the main thread and process the
Android M Permission learning notes, androidpermission
Android M Permission learning notes
Brief Introduction to Android Application PermissionsBy default, an Android application does not have any permissions. That is to say, by default, an
Android global exception or crash capture
When a crash occurs, the software will not crash. A dialog box will pop up, and the error message will be automatically saved in the SD card crash folder. It can also be sent to the server later. See.1.
Android -- simple use of PullToRefreshListView, androidpulltorefresh
Original article: http://blog.csdn.net/lmj623565791/article/details/38238749;
Pull-to-refresh encapsulates ListView, which is called PullToRefreshListView. Its usage is no
The relationship between Handler, loopermessagequeue, and loopermessagequeue
Summarize the relationships between Handler and logoff, MessageQueue, and customize Handler related to sub-threads.
1. Relationship between Handler and logoff and
Delayed loading and insert View, delayed loading insert View
What do you do when we need to add a header or footer for each View in the App?
Duplicate copy and paste can solve this problem, but it is complicated. You can try to use the label:
The
Ubiquitous Design Pattern in Android development-Singleton pattern
For developers, the design pattern is sometimes a hurdle, but the design pattern is very useful. After this hurdle is passed, it can improve your level. In android development, it is
[Android-011] [multi-thread download] Multi-thread download
Principle: The time slice allocated by the server CPU to each thread is the same, and the server bandwidth is evenly allocated to each thread. Therefore, the more threads enabled by the
Android removes the gap between two textviews
Two textviews are adjacent to each other, but the text is dynamically generated, that is, the number of words is changing, so the text is not displayed together. Two textviews are set separately, however,
Android: issues related to development environment setup and android1. Concepts and relationships of Android, ADT, and SDK
SDK: Software Development Kit ". This is a widely used term. It can be said that the collection of documents, examples, and
Image loading performance optimization and image loading Performance Optimization
In addition to good interaction experience, good software also requires good smoothness, and performance optimization is also very important for applications. In the
Basic Android tutorial -- 13 Drawable types in Android 8.1.3 summary Part 3This section introduces:
In this section, we will finish learning the remaining four Drawable types:LayerDrawable,TransitionDrawable,LevelListDrawable and StateListDrawable,
Android learning path 1: How to transmit data between activitiesTransmit dataCreate Activity
Right-click the project, select New, continue to select the Activity at the bottom of the project, and finally click Blank Activity.
At this time, Android
Typical Android Interface Design (8) -- ViewPager + PagerSlidingTabStrip implements dual navigation and pagerslidingtabstrip
I. Problem Description
PagerSlidingTabStrip is an open-source android project and indicator control. Address:
Basic tutorial for Android-2.4.10 basic usage of the Spinner (List Option box)Basic tutorial for Android-2.4.10 basic usage of the Spinner (List Option box)
Tags (separated by spaces): basic Android tutorial
This section introduces:
I would like
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