The layout-land and layout-port directories are mainly used to save files in the application's interface layout. Layout-land is the layout setting for horizontal screen display on the android application interface, and layout-port is the layout
In earlier versions, there was only one drawable, while in version 2.1, there were three types: drawable-mdpi, drawable-ldpi, and drawable-hdpi, which were mainly used to support multi-resolution.Differences between drawable-hdpi, drawable-mdpi, and
As we all know, Android is based on the Linux kernel, so it directly supports the Linux WLAN interface. The kernel driver of WLAN is dynamically loaded based on user settings on the UI. the control and security of WLAN are achieved through
When an Android program is started for the first time, Android automatically creates a thread called "main" main thread. This main thread (also called the UI thread) is very important because it is responsible for dispatching events to corresponding
Next, let's move to the Android Learning Series (10) -- drag the App list ListView (top). We will continue to implement the drag-and-drop effect of ListView.
7. Override the onTouchEvent () method.In this method, we mainly deal with dragging and
We will focus on learning how to construct an Activity class in AndroidWidget development. The Activity class in this example is very similar to a common Activity, but it needs to be processed after loading the Activity information in the trigger
Create an interface for mobile phones with different resolutions
1. First, go to the res folder.
2, create a folder named layout-1024x768,
Among them, 1024x768 is the screen resolution size. It is worth noting that the large numbers in the
Android: gravity/android: layout_Gravity differences:
Android: gravity is used to set the position of the content in the view relative to the view. For example, set the text in the button to the left and center of the view.
Android:
You can use RingtoneManager to set the type and obtain the Ringtone object. Or its Uri.
Ringtone can be played directly.
Java code
Public Ringtone getDefaultRingtone (int type ){
Return RingtoneManager. getRingtone (mContext, RingtoneManager.
Google started out as a Web search engine and has become a giant in the online world through hard work and continuous R & D. The Android platform developed by the network engine is compatible with Internet applications.
WebView widgets using the
This is the first article. This series of articles only aims to write down the design and implementation process of the android sub-item. This article will first introduce the design of the connected viewing project, the relevant content involved,
In android, AlertDialog is often used to display the dialog box. This dialog box is displayed in the center of the screen. However, in some programs, the dialog box must be displayed in different locations. For example, the upper or lower part of
The applications used for android development include:
Eclipse java ADT android SDK !)
1. install java (JDK)
2. Install eclipse
3. Install ADT
4. Configure Environment Variables
5. Configure eclipse
In this tutorial, a specific solution is
The obvious difference between SurfaceView and View is that the Surface does not need to update the View through a thread, but you must use the lockCanvas method to lock the canvas before painting, and then draw the canvas, after that, use the
This example is similar to the previous example. You only need to change the orientation of one LinearLayout from vertical to horizontal, and remove android: layout_gravity = "center_vertical"
Android: orientation = "horizontal"Android: layout_width
To create a child View with a proportional size, you can set the width and height of LinearLayout to fill_parent, set the width or height of the Child View to 0, and then set different weights (weight) for the child View ), in this way, the size of
In this example, a common LinearLayout is placed in FrameLayout as a sub-View, and the position is adjusted using Padding.
Android: layout_width = "match_parent"Android: layout_height = "match_parent"Android: padding = "30dip">Android: id = "@ +
[Solved] I finally reinstalled C: B aside 'vc ++ Toolkit 2003 'and 'Platform sdk' which provides the missing crtdbg. h file (in [pSDK_folder] \ Include \ crt ). the process is described in:
Http://wiki.codeblocks.org/index.php? Title =
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