Learn a lot on the internet and how the Android activity exits. Many methods are not good, try a variety of methods, the following method is my favorite, simple and easy to understand.
uses a single case pattern to create an activity management
It is worth noting that while MyEclipse is more powerful than eclipse, it is better to choose ECLIPSE,SDK compatibility with Eclipse in the specific Android development process, with myeclipse words that are prone to a variety of minor problems, If
Recently free to do nothing, and then studied the QQ left-slip Delete effect, try to achieve a bit, first on the effect of the picture:
General idea principle:-Implement menu display and hide by setting margin-Monitor ontouchevent, handle sliding
This blog to share a UI effect-to achieve the bottom switch tag, presumably we have encountered in some applications above this effect, the most typical is the micro-letter, you can slide around the page, you can click on the tab page sliding page,
Use Surfaceview custom Draw big Turntable
Say not much, first on the effect chart
Full Code address Welcome start
Realization of ideas and processes
1, first understand the basic use of surfaceview, it is not the same as the general view, the
Shape is used to set shapes, can be used in selector,layout, and so on, with 6 child tags, each with the following properties:
Fills: Setting the color of a fill
Interval: Sets the interval in four directions
Size:
Objective
Android often use dialog to implement some hints and some special effects, and the style is not the same, each time have to look up a lot of information, it is not necessarily able to solve. dialog box is a good thing to create a simple
1, Basic Environment preparation:Install JDK1.5 above, Eclipse3.3 above version. (MyEclipse also can), the author installs JDK1.6 and MyEclipse 8.6. JDK1.6 MyEclipse 8.62, download the android SDKUnfortunately, android.com by our powerful GFW to the
Some users will find activity in the switch to the background or layout from the horizontal screen landscape switch to portrait, will switch activity will trigger a OnCreate method, We can add this attribute android:configchanges=
Some of the important properties that Relativelayout uses:
First Class: property value is True or false
Android:layout_centerhrizontal Horizontal Center
Android:layout_centervertical Vertical Center
Android:layout_centerinparent is completely
The Android system adds hooks to the activity lifecycle, and we can do something with the hooks that are reserved for these systems.
Examples of 7 commonly used hooks are cited:
protected void OnCreate (Bundle savedinstancestate)
protected void
We develop a software, if the mobile phone installed too much software, it will be difficult to flip, so, there is a shortcut on the main page will be very good, the following is the detailed code:
Copy Code code as follows:
/**
*
I have been working for more than one months. There are a lot of things about Android that have a new understanding or real mastery. In order to let more like me small white less detours, so I will insist that I encountered in the work of some of
The activity is set to full screen and untitled bar, using Andorid.view.Window and Android.view.WindowManager. Window.feature_no_title represents no title bar.
WindowManager.LayoutParams.FLAG_FULLSCREEN represents a full screen.
The
specific
Because the project on the need for sideslip items to show the collection button, remember before the code home has written a powerful open source control Androidswipelayout was ready to use directly, but saw issue found that many users now have a
First, DatePicker inherits from Framelayout class, the main function of the date selection control is to provide the user with date data containing the year, month, and day and allow the user to modify it. If you want to capture data events in a
Android Alertdialog Custom Style
Like a list of options for the pop-up dialog box, to change the style is generally taken to rewrite the layout way
Today to understand that can actually customize the style, and share with you, in fact, very simple
When you import studio engineering, when you sync, you are prompted to error:configuration with name ' default ' found.
Before because of the unfamiliar with Gradle, so did not find the reason, in fact, is also lazy, did not seriously to
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