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