In the previous article we introduced the custom implementation baseadapter the general implementation layout, however, the previous chapter also said that the common implementation of the way the efficiency is very low, and the system overhead is
Knowledge Points:
This will continue with the previous article on the Learning of menu, context menu and pop-up menu.
Context Menu
The context menu provides action on a specific item or context frame on the UI interface, just like the right-click
Background:
Android3.0 (API level 11), the Android device no longer needs a special menu key.With this change, Android apps should eliminate the reliance on traditional 6 menus. Instead, the Anction bar is provided to provide basic user
Recently on the Internet to see the picture of Moto 360, really handsome, handsome and handsome, more handsome than handsome. So want to study the Android Wear.
Updated the Android SDK and failed three times.
1. Failure for the first time
1.Toast Source Analysis
The old rules, we first go to see the source code of toast.
Toast there are two ways to display layout, one of the most common calls Toast.makeText() , see the source code is written in this way
public static Toast
Recently in the picture-related applications, so on all sides accumulate to some common operations, generally there will be a variety of ways to achieve this function, such as1. Using Chroma transformation2. Adopt ColorMatrix Color Matrix3. Using
Then appwidget Basic Learning, today is a "advanced version" of the small example, used to test their own learning effects. So I made a roll of the dice widget.
Convenient for everyone to watch, the first screenshot is as follows:
Note that
1: Check to see if a memory card is plugged in
Copy Code code as follows:
String status=environment.getexternalstoragestate ();
if (Status.equals (enviroment.media_mounted))
{
Description has SD card insert
}
2:
What is Appwidget? Appwidget is what we usually see on the desktop of the kind of small window, the use of this small window can provide users with some convenient and efficient operation.Today's goal is how to create a simple appwidget.
First I
This article describes the Android programming approach to developing audio recordings and playback recordings. Share to everyone for your reference, specific as follows:
* * The application needs to have the permission to write to external
This article describes the Android based on ListView to achieve a similar QQ space-like scrolling page and scrolling load effect. Share to everyone for your reference, specific as follows:
1. Rolling load
Listview.setonscrolllistener (new
Generally speaking, the Aidl technology is not very common in our application development process, although Sina Weibo provides SSO login, but its principle is to use aidl. In this paper, the principle of aidl and its realization method are
Nonsense not to say more, directly to everyone on the key code.
-(void) viewdidload {[Super viewdidload];//do no additional setup after loading the view.
[Self showalertview:@ "11111"];
///Custom pop-up box-(void) Showalertview: (NSString *)
Below please look at the effect chart:
It doesn't look very flashy, and its implementation is not very complex, focusing on onDraw() drawing with methods.
The first is our Attrs file:
Next is View the custom
First picture.
Click on the + number to select the picture
In fact, the addition itself is a ListView or Recyclerview
It's just a little special layout.Item
xmlns: Android= "Http://schemas.android.com/apk/res/android" android:id=
This article illustrates the solution to the problem of black screen when the Android program starts up. Share to everyone for your reference, specific as follows:
About black screen:
By default, when a program starts, it has a black screen period,
The example in this article describes how Android simply records and restores the ListView scrolling location. Share to everyone for your reference, specific as follows:
Sometimes we need to record the current ListView scroll to the location,
Global variables, as the name suggests, are variables that are called in the entire class or in multiple functions. Also called an external variable. A local variable is a variable that can be accessed in a particular procedure or function.
Steps of the first method:
1. Instantiate the WebView component in the activity: webview WebView = new WebView (this);2. Call the WebView Loadurl () method to set the page to be displayed Wevview:Internet use: Webview.loadurl
In Android, usually use MediaPlayer to play some media files, for audio files, just use the meidaplayer combination of a few lines of code, but for the video file is slightly more complicated. Individual MediaPlayer can only play audio files, want
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