Android Small Notes

Source: Internet
Author: User

1. To add content using a session box, first create a class to hold the input content, such as the person class.


2, the regular expression of the shaping Judgment:matches ("\\d+"), indicating that the input is n-bit shaping.


3, adapter.notifydatasetchanged (); Indicates the refresh of the data.


4, Toast.maketext (Getapplicationcontext (), Text, (). Show (); This output must be written on. Show () when prompted, otherwise the content written in text will not be displayed when clicked.


5. Do not forget to use the custom adapter when loading

public int GetCount () {

TODO auto-generated Method Stub

return persons.size ();

The length of the content to be displayed, otherwise it will not be displayed (this is the case now)


6, in the page Jump command, must not forget to write startactivity (intent); Otherwise there will be no response. (If the jump page is not registered, you must first register, or you will get an error).


7, custom load layout, if it is not loaded main class, you must View.findviewbyid ();


This article is from the "Android Small Notes" blog, please be sure to keep this source http://dreamwing.blog.51cto.com/9872128/1610529

Android Small Notes

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.