Android EditText button

Source: Internet
Author: User

Main.xml

<?XML version= "1.0" encoding= "Utf-8"?><LinearLayoutxmlns:android= "Http://schemas.android.com/apk/res/android"android:orientation= "vertical"Android:layout_width= "Fill_parent"Android:layout_height= "Fill_parent"    >    <TextViewAndroid:layout_width= "Fill_parent"Android:layout_height= "Wrap_content"Android:text= "@string/hello"        />       <!--hint indicates a message, and there is a hint in the input box -   <!--Fill_paren Width extended to entire screen -   <!--wrap_content height vs. font, wrapping font -    <!--inputtype The input data type, at which point the phone number is entered -   <!--background The shape settings of the input box, set the parameters to jump to the Drawable/shape settings -    <EditTextAndroid:hint= "I am EditText"Android:layout_width= "Fill_parent"Android:layout_height= "Wrap_content"Android:inputtype= "Phone"Android:background= "@drawable/shape"                   />        </LinearLayout>

Shape.xml

<?XML version= "1.0" encoding= "UTF-8"?><Shapexmlns:android= "Http://schemas.android.com/apk/res/android"Android:shape= "Rectangle">    <!--the color of the fill -    <SolidAndroid:color= "#FFFFFF" />    <!--sets the four corners of a rectangle to be curved -    <!--Android:radius radius of Arc -    <CornersAndroid:radius= "7dip" /></Shape> 

Android EditText button

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.