An example of this article describes the Android development approach to removing project caching. Share to everyone for your reference, specific as follows:
How to delete an item's cache:
Getcachedir () can get the cached address of the current
In doing mall projects, there is a demand, is a product under two prices, one is the market price, one is the sales price, at this time to add a delete line market price;
Just started to encounter this time, on the internet to find a half-day of
The example in this article describes the Android custom Viewpager approach. Share to everyone for your reference, specific as follows:
Package com.rong.activity;
Import Android.content.Context;
Import Android.graphics.Color;
Import
The examples in this paper summarize several methods of implementing the delay in Android. Share to everyone for your reference, specific as follows:
First, through thread
New Thread () {public
void run () {Sleep
(* * *);
}
}. Start ();
This article introduces the Viewpager Implementation tab switch, the effect diagram is as follows:
Step One: here, use a compatible version of the V4 package to layout, where eclipse did not enter a hint, so to manually enter the file name
In your project, list controls such as ListView or GridView are used. Typically used to show data requested from the network. If the requested data is empty or if there is no network at the time of the request, how should our interface be displayed?
This example describes the simple use of Android AnalogClock. Share to everyone for your reference, specific as follows:
The use of the AnalogClock component is simple, let's take a look at the effect chart:
The use of the AnalogClock component
ListView We use it all the time, but when we have more content in adapter we sometimes have no way to set up some components, for example:
Can see the story of Jingdong east of such a layout, this layout can be said that I currently see more
Now there are a lot of app support right sliding back, such as know, the effect is better.
So he inherited the activity and fragment, derived swipebackactivity and swipebackfragment, and used it for the realization of this effect, that is, just
Network collection for the following reasons, as well as solutions:
I would add that:
Solution One:
Add the following code after the protected void OnCreate (Bundle savedinstancestate) function that operates the activity of the network class
This article analyzes the usage of listactivity in Android. Share to everyone for your reference, specific as follows:
The procedure is as follows:
Import android.app.ListActivity;
Import Android.os.Bundle;
Import Android.view.Menu;
Import
On the Internet to see more of the tutorial on the tab, found all very messy. More use is made of Titlepagertabstrip and Viewpaper. But Titlepagertabstrip has a very big flaw, the content of the tab inside just enter is not, want to slide one time
Android has its own dialog box title, but it's not very nice, and if you want to set a custom caption for the pop-up dialog box, use the Alertdialog.builder setcustomtitle () method.
The operation effect is as follows, the left side is clicks the
This article analyzes the usage of Alertdialog in Android and shares it for everyone's reference, as follows:
Android Alertdialog provides dialog boxes for programs that can further meet the needs of the program. Here are some examples.
The
The example of this article is about how to realize the coexistence of toast prompt frame with Android. Share to everyone for your reference, specific as follows:
The procedure is as follows:
Import android.app.Activity;
Import
This example describes how Android uses Webview.loaduri () to open web pages. Share to everyone for your reference, specific as follows:
The program looks like this:
Import android.app.Activity;
Import Android.os.Bundle;
Import
This article is for you to share a very simple but very commonly used control, the textview of the status of the horse lamp. When the length of the text to display is too long, and do not want to change lines to display text, you can completely
Recently, the project used a sliding page, that is, and the current market is very hot "today's headline" page sliding similar to the online search for a while, most of them are viewpager to achieve, at first I used the Viewpager+viewgroup, The top
To show you what Android query can do for user interface development, we've cited an example from their project page.
This is the code before using Aquery:This is the code after using Aquery:
The familiar jquery grammar emerges again, and the
Use Anko of Kotlin in Android to run background tasks (KAD 09) and kotlinanko
By Antonio Leiva
Time: Jan 19,201 7
Link: https://antonioleiva.com/anko-background-kotlin-android/
Anko is an Android library developed by Jetbrains using Kotlin. It
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