In the actual development process, we will see a good third-party effect, envy, and want to see the UI layout of people. The following describes how to decompile third-party applications, and recompile the entire process
Step 1 download
1 ViewPagerImplemented FunctionsAnd actual running
The ViewPager class provides new effects of multi-interface switching. The new effect has the following features:
[1] One of the interfaces in A group is currently displayed.
[2] when a user slides
1. Implementation Principle
Create a custom control that displays text in the control and sets an animation. After three seconds, the alpha of the control is 0. After the animation is complete, the control is removed from the ViewControl.
2.
At the beginning of July 13, I read the following:
1Init has not changed much. We can see from init. rc that the rule has not changed, but init. rc has some new settings. It seems that it is more dependent on some information about the
Recently, I have been researching android and using it. In this case, the program Notification must be resident in the Notification bar and cannot be cleared (just like android QQ. After research and implementation of its function, the use of
Android Allows defining multiple string resource files in res/values
Hello World! App Name
When a resource file is created or modified here, ADT will automatically update R. java and generate a unique identifier, such:
public static final
Time is really clever. I didn't plan to write the Surface system (the difficulty after Surface change is really rough compared to AudioFlinger), but to celebrate the second masterpiece of yanze Luola, I decided to stick to it. Next we will continue
XML files that need to be read as resources are usually placed in the res/xml Directory, which will be compiled into binary files during packaging. XmlPullParser objects are used to access these xml files.
Resources res = activity.getResources();
I. Handler definition:It mainly accepts data sent by sub-threads and uses this data with the master thread to update the UI.Explanation: When an application is started, Android will first enable a main thread (that is, the UI thread). The main
During Android development, we are likely to use TabActivity for development. If your program needs to bind a Service to each Activity in TabHost of TabActivity, we usually perform the bind operation in the onCreate () method of the Activity
Sometimes we need to use a prompt box (AlertDialog) that matches our style in a game or application)
The following is my summary in developing a small game. I hope it will be useful to you.
First:
The following figure shows the background image or
The mobile phone screen is too small, and the translucent effect is often used to increase the visible range. We will share with you the following translucent implementation methods!
The following is an example of the effect of translucent custom
In progressAndroidDuring application development, it is very easy to scroll horizontally or make a marquee,TextviewThe attributes are supported. As long as the settings are accurate, they will scroll and be relatively simple to develop.
You only need to copy the code to the oncreate method to run it.Java code
RelativeLayout rl = new RelativeLayout (this );
Button btn1 = new Button (this );
Btn1.setText ("----------------------");
Btn1.setId (1 );
RelativeLayout.
Value
Description
Top
Put the object at the top of its container, not changing its size.Place the object on the top of the container without changing its size.
Bottom
Put the object at the bottom of its container, not
Summary: The returned values here have a concept of "consumption. if the put event (down, move, up) is imagined as a commodity, it is easy to understand. true indicates that I have consumed the service. (If I want this product, you can't, so I will
Sometimes we need our program to run automatically after the system starts up. At this time, we can use the Broadcast Mechanism in Android to compile a class that inherits BroadcastReceiver and accept the system to start and stop broadcasting. The
The two methods are to draw a circle that gradually increases, and the custom view needs to sleep to see the effect. surfaceView is not needed. It may be related to its two-level cache._____________________________________ Most beautiful split line _
1. Overall summary: Use "button painting" as an example.Public class MyButton extends Button {---> inherits the Button. Generally, we inherit the View without a style.Public MyButton (Context context ){Super (context );}@ OverrideProtected void
1. An error occurred while importing the project. It may be that the version of the SDK you imported does not match the version in eclipse.I. You can change the version number in properties. Right-click android tools ---> fix project properties and
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