[Android] Development Day Eighth

Source: Internet
Author: User

The View class is the base class for all UI components, and it contains XML properties and methods that all components can use. ViewGroup inherits the View class, which is used primarily as a container class, an abstract class that uses its subclasses as a container in practice.
Android:alpha= "0.5" sets the transparency of the component android:background= "@color/colorprimary" sets the background color of the component android:clickable= "false"    Sets whether the component can fire a click event android:contentdescription= "@string/app_name" sets the main description information for the component android:drawingcachequality= "low"    Sets the quality of the drawing cache used by this component android:fadescrollbars= "false" when the scrollbar of the component is not used, whether to fade out the display scroll bar android:fadingedge= "Horizontal" Sets whether the component boundary uses a fade-out effect when scrolling the component android:fadingedgelength= "100DP" sets the length of the fade-out boundary android:focusable= "true" sets whether the component can get focus on Android: Focusableintouchmode= "True" sets whether the component can get focus in touch mode android:id= "@+id/edittext" sets the unique identity of the component.    Findviewbyid android:isscrollcontainer= "True" to set whether the component is used as a scrollable container android:keepscreenon= "true" Sets whether the component will force the phone screen to always turn on android:longclickable= "true" setting whether the component can respond to a long click event android:minheight= "100DP" sets the minimum height of the component android: Minwidth= "300DP" sets the minimum width of the component android:nextfocusdown= "@string/app_name" sets the component that focuses on the component, and when the DOWN ARROW key is pressed, idandroid: nextfocusleft= "@string/app_name" sets the focus on the component, and the component that gets the focus when the left arrow is pressed idandroid:nextfocusright= the @string/app_name setting focuses on the component, And the component that gets focus when the right ARROW key is pressed IDANDROID:NEXTFOCusup= "@string/app_name" sets the focus on the component, and the component that gets focus when the UP ARROW key is pressed idandroid:onclick= "OnClick" for the component's Click event Binding Listener android:padding= "10DP" in Four sides of the component fills the area android:paddingbottom= "10DP" sets the fill area below the component android:paddingleft= "10DP" sets the fill area on the left side of the component android:paddingright=    "10DP" sets the fill area on the right side of the component android:paddingtop= "10DP" sets the fill area on top of the component android:rotation= "10" Sets the angle android:rotationx= "30" of the component's rotation Sets the angle of rotation of the component around the x-axis android:rotationy= "45" sets the angle at which the component rotates around the y-axis android:saveenabled= "true" if set to false that does not save its state when the component is frozen Android: scalex= "2" sets the scale of the component in the horizontal direction than android:scaley= "0.5" to set the horizontal scrolling offset of the component in the vertical direction than android:scrollx= "10DP" after the component is initialized android:scrolly= "20DP" the component initializes the vertical scrolling offset android:scrollbaralwaysdrawhorizontaltrack= "true" to set whether the component always displays the horizontal scroll bar of the track Android:    Scrollbaralwaysdrawverticaltrack= "True" sets whether the component always displays the vertical scrollbar's track android:scrollbardefaultdelaybeforefade= "1000"    Sets how many milliseconds the scrollbar will delay before fading out hide android:scrollbarfadeduration= "2000" setting how many seconds android:scrollbarsize= "50DP" to fade out the hidden process of the scrollbar Sets the width of the vertical scroll bar and the height of the horizontal scrollbar android:scrollbarstyle= "Outsideinset" sets the style and position of the scroll bar for AndroidOid:scrollbarthumbhorizontal= "@string/app_name" sets the slider for the component's horizontal scroll bar corresponding to the Drawable object android:scrollbarthumbvertical= "@    String/app_name "Sets the slider for the vertical scrollbar of the component corresponding to the Drawable object android:scrollbartrackhorizontal=" @string/app_name " Sets the Drawable object for the horizontal scrollbar of the component android:scrollbartrackvertical= "@string/app_name" sets the vertical scrollbar of the component for the track corresponding to the Drawable object of Android     : scrollbars= "Horizontal" defines how many scroll bars are displayed when the component scrolls android:soundeffectsenabled= "true" sets whether the component uses sound effects when clicked, android:tag= "EditText" Sets the tag value of a string type for this component, which can be obtained using View.gettag ()/Findviewwithtag (). android:transformpivotx= "0DP" sets the rotation center's x-coordinate when the component rotates android:transformpivoty= "10DP" sets the y-coordinate of the rotation center when the component rotates Android: translationx= "100DP" sets the displacement of the component in the X direction android:translationy= "30DP" sets the displacement of the component in the Y direction android:visibility= "visible" sets whether the component Visible

[Android] Development Day Eighth

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.