Objective
You may often experience the problem of screen rotation in the development of iOS programs, for example, you want to specify a different screen rotation of the page, but because the system provides a method is the global approach to the
Today, finishing the code before, suddenly see their own write a scraping card, sorted out for later use, while sharing to the needs of friends, if there is a mistake, please correct me.
The implementation of the steps, in fact, freehand draw
The following code is the processing code in the Android music:
Copy Code code as follows:
Mediaplayer.onerrorlistener Errorlistener = new Mediaplayer.onerrorlistener () {
public Boolean onError (MediaPlayer MP, int what, int extra) {
How do you implement the background effect of the Chart tab and the rounded rectangle with a shaded corner? Most people will make the artwork cut, using the point nine diagram to do the background. But what if only one picture is provided? For
Copy Code code as follows:
public class Mygesturelintener extends Simpleongesturelistener {
private context;
Public Mygesturelintener {
Super ();
This.context = context;
}
Click to trigger immediately when the touch screen is pressed/*
Once a friend asked me a question, a 512*512 150KB png format picture and a 512*512 100KB compression ratio is 8 jpg format picture, loaded into memory, that is, loaded into a bitmap, which occupies a large memory? This question seems to be a little
The idea here is that I'm using the code to view the Android source code, so it doesn't match the original design idea of Google engineer 100% (or maybe 0%), but this article will certainly help you understand asynctask, or something you haven't
The screen uses an activity to realize, the screen is mutually independent, the jump relation between the screen realizes through the intent.
The screen jumps fall into the following categories:
1. Screen 1 jump directly to screen 2
Intent Intent
Have such an interview question:
How do I publish a SQLite database (dictionary.db file) with a apk file?
A: Put this file in the/res/raw directory. Files in the Res\raw directory are not compressed so that the files in that directory can be
This article is used in the content of the Android.gesture package, the specific example of a reference to the Gesturebuilder program in Sample.
1. Gesture CreationGesture creation is mainly used to Gestureoverlayview and gesturelibrary. The
1.Java JDK
You need to explain that the OS x system is self-contained with Java JDK1.6. But here I install is JDK7, download address: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html. See figure below:
After
Android doesn't have to write annoying toast every time, just call this packaged class and you can use it!
Copy Code code as follows:
Package com.zhanggeng.contact.tools;
/*** Toasttool can make your use Toast more easy;** @author
It's an interesting little thing: using a custom view drawing, drawing lines, and drawing lines that fade until they disappear. The effect is shown in the following illustration:
You can make a stroke of change with a property animation or a
First look at the effect chart:
Problem:
1. Drop down list (because you haven't seen this yet ...) )
2, the title bar display problems
3, the button to Enable settings
..........
Here's the code:
Layout Fragment_main (Issue 1)
This article realizes the scaling effect of the images in Android
First design layout:
The logical code is as follows:
public class Mainactivity extends activity {private ImageView iv1;
Private ImageView Iv2;
Custom controls are often used in recent projects, so custom attributes are often used, and here is a description of the use of custom attributes:
Custom attributes exist in the/value/attr.xml file and exist in the following format.
Copy Code
Let's take a look at the effect chart first, I believe many Android beginners want to know how the effect is achieved, to the above figure:
To implement the custom load style in this figure above, it is very simple, first of all we need the layout
As shown in the picture for the program effect animation diagram
The principle of map scrolling
In my previous blog article introduced the characters in the screen movement way, because the game map before spell is completely filled with 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