The previous common control introduced a lot, now to discuss the development of mobile phone commonly used in the drawing. To master the graphics of Android, first of all, we need to understand the basic use of the following graphic interface:
Following the previous article on how to use the gallery control, this article describes the combination of gallery and imageswitcher use. The example code described in this article will implement a simple browsing image function.
First post the
The example in this article is about Alertdialog, which is frequently encountered in this dialog box. Alertdialog is not the same as the dialog in WIN32 development, Alertdialog is non-blocking, and the Blocked dialog box is Popupwindow.
First,
An introduction to ListView in Android is about how to make a custom control with two lines of text as a way to use the ListView item. This article is followed by a more in-depth introduction to their usage around ListView and item.
First, let's
This article, on the basis of a preliminary introduction to tablelayout Common properties, will further explain how UI designer designs Tablelayout + TableRow. Because of practical application, often need to add the data to Tablelayout in the code (9
1, the difference between gravity and layout_gravity
Gravity
property is the qualification for the view content. such as a button above the text. You can set the text in view on the left, right and so on. This is the property that did this.
The examples described in this article are open animation classes in Android that have been packaged and used by friends for Android Development. In this class, you can: set the picture resource for the opening animation, return to the next activity
In this paper, an example is given to illustrate the method of Android to achieve caption scrolling effect. It's mostly a ready-made Java class file, written by Android's got up Tony, this time forwarding, and hope the original author Tony doesn't
We use a lot of control in the development of Android games, including the buttons and trackball controls mentioned above, and in addition to hand gestures, gravitational induction and other control methods need to understand the mastery. This
Android's message mechanism is almost an interview question, and certainly not because of the interview, but to learn, more importantly, it is essential in the development of Android, occupy a pivotal position, so it is necessary to understand it.
For anyone familiar with Android programming, broadcasting is an important feature of Android, with a wide variety of broadcasts in Android, such as the state of the battery, the strength of the signal, the answering of the phone, and the reception
This example shows a dialog approach to black edges in Android. And it is divided into two kinds of methods: preserving shadow and not preserving shadow. For reference. The implementation methods are as follows:
1. Do not preserve shadows
The code
In this paper, an example shows the Android implementation of the activity interface switch to add animation effects, for the Android program designers have a good reference value. The specific methods are as follows:
People who know about Android
Previous articles have introduced the basic usage of MediaPlayer, and here is a more in-depth explanation of MediaPlayer's online playback function. This paper mainly realizes the function of MediaPlayer playing audio online, because the online
Problem Description:
Nested Fragment b,fragment B in activity A in the project Fragment C, as shown in figure:
question 1: in the click Activity a main Menu 1 to switch, the error fragment C already added.
Workaround: When adding fragment C
This article is an example of Android using Viewflipper to carry out gesture switching method, share for everyone to reference. The following steps are implemented:
First, define a viewflipper in the layout XML file:
Copy Code code as
These days to do projects, some of the pictures need to use a circular picture, so Baidu a bit, on the GitHub to find an open source project, processing is very simple, the effect is as follows:
The use is particularly simple, altogether three
It may be that we often use timers in development, such as when we are recording, we may need to display a timer in the upper-right corner. This thing is actually very simple to achieve.
Only need to use one control chronometer, yes, it's so simple,
Each cell phone has a message to receive and send the function, below we through the code to realize receive and send the message function.
First, receive SMS
1, the creation of internal broadcast receiver class, the receiving system sent SMS
This article briefly discusses the architecture of future Android game engine templates. In the Android game development Tutorial II: The View class and the Surfaceview class we've talked about, Surfaceview class has a lot of advantages, so in the
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