"2" Android learning controls and layouts

Source: Internet
Author: User

Update in ...


Control:

First, button

Drag, pull, graphical operation



Button accordingly:





Summary of this issue:

One

The sudden discovery of warning during Android development

EditText reported "This text field does not specify an inputtype or a hint"


Reason:
EditText need to specify default input type
Add Android:inputtype= "Number|phone" to designate as a number or phone

The InputType types are as follows:
Android:inputtype= "None"
Android:inputtype= "Text"
Android:inputtype= "Textcapcharacters"
Android:inputtype= "Textcapwords"
Android:inputtype= "Textcapsentences"
Android:inputtype= "Textautocorrect"
Android:inputtype= "Textautocomplete"
Android:inputtype= "Textmultiline"
Android:inputtype= "Textimemultiline"
Android:inputtype= "Textnosuggestions"
Android:inputtype= "Texturi"
Android:inputtype= "Textemailaddress"
Android:inputtype= "Textemailsubject"
Android:inputtype= "Textshortmessage"
Android:inputtype= "Textlongmessage"
Android:inputtype= "Textpersonname"
Android:inputtype= "Textpostaladdress"
Android:inputtype= "Textpassword"
Android:inputtype= "Textvisiblepassword"
Android:inputtype= "Textwebedittext"
Android:inputtype= "TextFilter"
Android:inputtype= "Textphonetic"
Numeric type
Android:inputtype= "Number"
Android:inputtype= "Numbersigned"
Android:inputtype= "Numberdecimal"
Android:inputtype= "Phone"//dial pad
Android:inputtype= "datetime"
Android:inputtype= "Date"//Date keyboard
Android:inputtype= "Time"//Timing keyboard


Two

Add controls manually add or drag in the layout add, add EditText after the layout is not good, the other controls easy to use, and then said the following paragraph

Exception raised during rendering:java.lang.System.arraycopy ([Ci[cii) V

Exception details is logged in Window > Show View > Error Log

Check the "Android version to use when rendering layouts" and make sure your ' re not using a version of ' ends in "W Droid Wear (e.g. API 20:android 4.4W). I don ' t believe Wear supports EditText.

Modify the selection of different APIs, and reduce the version can be

Three

How do i show all the APIs (including the lower version) and can I download them? As follows:



Yes: Tools-> Options, tick Force https//. Sources .....



"2" Android learning controls and layouts

Related Article

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.