it contains.Note: The ScrollView can contain only one view at a time.2. Configuring the ScrollView control in XMLHere's an example to illustrate configuring the ScrollView control in an XML file.Use the ScrollView class to complete the vertical scrolling of the picture. The steps for its implementation are:(1) Create an Android app project in Eclipse named Li_scrollviewxml.(2) Open the Main.xml file in the
This article is a summary of the working principle of view, which I have read in Chapter 13th of Android Kernel Analysis. At the same time, I sincerely recommend this book to anyone eager to learn about the android framework layer. I hope you can learn more in Android development.The drawing process of the entire
The standard valid and touchable UI elements specified by Android4.0 are 48dp, which is converted to a physical size of about 9mm. The recommended target size is 7 ~ 10mm, which is consistent with the iPhone, is an area where the user's fingers are accurate and comfortable to touch. As shown in, your UI elements may be smaller than 48dp, the icons only have 32dp, And the buttons only have 40dp, but their actual operational focus has reached the 48dp size.
In order to make the small UI area have
Android special effect View: flashing View in the third bullet, androidviewFlashing View in the third bullet of Android special effect ViewI 've only been doing this for half a day, but I still have to give it one. The rest depends on imagination.
Package com. example. em
OverviewIn the previous article, the drawing process of the Android view (top)--view The measure process of the view is described in detail. For the entire process of drawing the view, after measuring the size of the view, you sta
The types of events in Android are key events and screen touch events, and touch events are the underlying events of screen touch events, and it is necessary to understand them in depth.One of the simplest screen touch actions triggered a series of touch events:action_down->action_move->action_move->action_move...->action_move-> Action_upWhen the screen contains a viewgroup, and the ViewGroup contains a sub-view
1. Customize the view and add properties to it We usually use the button Ah TextView AH is the system comes with Android control for developers to use, but these things are not enough, sometimes we need to customize the control.(1) Create a new class MyView to inherit the view classImportAndroid.content.Context;ImportAndroid.content.res.TypedArray;ImportAndroid.u
My Android advanced tutorial ------) Create and view a custom Debug version Android signature certificate in Android
When Android Application Development accesses various sdks, it will find that many sdks need to be identified by the package name and the certificate fingerpr
Please respect the results of the sharing, reproduced please indicate the source:http://blog.csdn.net/hejjunlin/article/details/52263256Preface: The view frame written to the sixth article, found that the second article did not, and then the matter is in the public number, forget the update on the blog, so the attention of the public should have seen, while today there is time to fill up. (PS: The source code in this article is
not intercept, continue to pass down.Click on the event from the bottom of the pass ruleThe Click event passes to the lowest view, and if his ontouchevent () method returns True, the event is consumed and processed by the lowest view, and if False indicates that the view is not processed, it is passed to the parent view's ontouchevent () processing, If the paren
the parent container to the child element, thus completing a measure process. The child element then repeats the measure process of the parent element, which completes the traversal of the entire view treee over and over again. Similarly, the flow of the PerformLayout () method and the Performdraw () method and the Performmeasure () method are similar. The entire process is as shown.Decoreview is the top-level layout of the entire activity, which by
Article about the Android View event distribution process on the network can be found a large, here to post a code-based article, the author is also a cow: the Android event distribution mechanism completely parse, take you from the source point of view thoroughly understand (on).Although the talk is very good, but aft
You can see my blog about the difference between project and Android view ashttp://blog.csdn.net/siyehuazhilian/article/details/42123563The Android view hides some of the views that you don't need to see, merging some filesBut some catalogs are not real. And when you create directories and files, you cannot locate the
This example describes the custom view (view) usage of Android development. Share to everyone for your reference, specific as follows:
The view class is a super class for Android, which contains almost all of the screen types. Each view
Problem:
Android: couldn't save which view has focus because the focused view ### has no ID
There are two possible causes:
Solution 1:
Android: icon = "@ drawable/icon" Android: Label = "@ string/app_name">
An
Original article,Reprinted please indicate the source: http://blog.csdn.net/qinjuning
Translated 3:Optimization View
For details about how to design custom views and response touch time, see Android developer:
Address: http://developer.android.com/training/custom-views/index.html
Translation address: optimizing the view
Through the previous study, the well-
Written in the previous words: This chapter is very valuable, want to enhance the knowledge of Android must read. Other aspects of Ascension can also be achieved without being an android. Original address: http://android.xsoftlab.net/training/custom-views/making-interactive.htmlThe drawing of the UI is only part of the custom view. You also need to enable
Solution wrap_content Invalid in custom ViewChildren's shoes with custom view will find that a custom control that inherits the view directly needs to override the Onmeasure () method and set its own size when wrap_content, and if the custom control is set to a size in the layout file, Wrap_content is equivalent to Match_parent.In fact, the Onmeasure () method has been rewritten in the control of
Android applicationsProgramView and viewgroup are used to construct user interfaces. They all inherit from view classes (or their subclasses), such as button, textview, and edittext. Styles and animation can be combined with various views to build a rich UI, which is sufficient to meet the vast majority of requirements. But sometimes we also need some special views.To give users a distinctive experience.
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.