Take a look at the movie tickets. Online selection function to achieve the effect of the map:
The interface is rough, mainly to see the principle.
This interface mainly includes the following parts
1. Seating2, the left row number3, the top left thumbnail4, the red area in the thumbnail5. Follow the movement when the finger moves6, two fingers zoom with zoom
Main technical points
1. Matrix matrices2, Gesturedetector and Scalegesturedetector3, bitmap the basic usage4, here only need to rew
Effect of Android UI view-imitation QQ friends list group floating PinnedHeaderExpandableListView
I tested it on a tablet. The picture is a little big. You can check the effect.
Next, paste the source code:
PinnedHeaderExpandableListView. java
Note that in the onGroupClick method, the function of the Code parent. setSelectedGroup (groupPosition) is to click the group top,
I don't need this effect on th
= s.length-1;
else if (Index
Step four: Linkage between the letter navigation bar and the ListView
Thinking Analysis:
1, we have passed through the interface to pass a choice of letters, and in the adapter written in accordance with the letter query position method, this time as long as the main activity on the custom view settings listening, Judge can.
ListView Connector
Nv.setlistener (new Navview.ontouchcharacterlistener () {@Overr
When an activity receives a focus, it is required to draw its layout. The android framework will deal with this painting process, but the activity must provide its layout level root node.
Painting starts from the root node of the layout. It is required to measure and plot the layout tree. Painting is processed by traversing the layout tree and rendering the view that intersection each of the failure areas
)
{
super.onsizechanged (W, H, OLDW, old h);
Viewwith = W;
Viewheight = h;
InitData ();
}
4. Summary
There are some relatively imperfect areas to deal with, such as the number of attributes that can be adjusted through XML too few. Usually write things or too little, I hope that after summing up the completion of writing skills. The required attributes need to be perfected later.
GitHub Address: Https://github.com/FelixLee0527/ZhiMaScoreCurve
The above is a small set to introduce the
friends may just make their phones are equipped with their favorite appearance, install all kinds of their own clock software, and then configure various types of quick operation and so on, and some of the system has a hobby may go to toss xposed frame. The xposed framework is an artifact, which is a feature of the Android system's open source. Maybe some don't like to toss the machine friends see here will say, OMG, this is much trouble, yes, it is
Guo XiaoxingWeibo: Guo Xiaoxing's Sina WeiboEmail:[email protected]Blog: http://blog.csdn.net/allenwellsGithub:https://github.com/allenwellsA well-designed class is always similar, it uses an easy-to-use interface to encapsulate a particular function, it uses CPU and memory efficiently, and when we design the view class, we usually consider the following factors:
Follow Android Standard Rules
P
This article for you to share the Android implementation drag selection button specific code, for your reference, the specific content as follows
Effect chart
View Code
First step: Custom Properties
Step Two: Customize the Circle
public class Circleview extends View {/** * default color * * Private final int default_color = Color.ltgray;
Reprinted from doyee
Obtain the Java source code of Android and view the latest method associated with Eclipse: lizongbo published at: 01: 59. Saturday, January 1 st, 2011Copyright Disclaimer: You can reprint the document at will. During reprinting, you must mark the original source and author information of the article in the form of a hyperlink and this copyright statement.Http://618119.com/archives/2011
Exposes any properties or behaviors that affect the visible appearance in your view.
• Adding and setting styles through XML
• Control the appearance and behavior of elements by their attributes, and event listeners that support and communicate important events
Detailed steps See: Android Custom View Step
The effect chart shows:
Supported Styles
The prope
Note: This article refers to the complete demo:scrolldemo1 of all three sliding modes. What we need to know about view (1) What is view?The view class in Android is the base class for all UI controls (base class), which means that all of the various UI controls we normally go to, such as Button, Imagview, and so on, in
View the source code in Android eclipse
When developing Android, it is difficult to view the source code.ArticleLater versions (All Versions earlier than 2.0, which is different from the configuration of my latest 2.2 version). However, I still gave some inspiration. Through configuration, I can finally
Measure calculation process of View in Android
In Android, Veiw goes through three phases in sequence from memory to display on the UI: Traffic calculation-> Layout-> drawing, for details about the overall mechanism of View calculation, layout, and drawing, see the layout and Drawing Mechanism of
From: http://blog.csdn.net/android_tutor/article/details/5499731
Hello everyone, our tutorial is onAndroidCustom in the tutorialViewFor beginners, they are usedAndroidThe traditional page layout method is as follows:
[Java]
View plaincopy
Android: Orientation = "vertical"
Android: layout_width = "fill_parent"
Andro
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.