Tips:
ListView nested ListView, when Footerview. Need again measure height, footerview the topmost view cannot be relativelayout, preferably with LinearLayout package relativelayout. otherwise
View.measure (0,0) will report an exception.
ListView plus Headerview. At the time of Onitemclick. Position the Headerview in.
EditText android:textcursordrawable= "@null" to darken the cursor. Flashing
The Ontouch event assumes return true. The onclick, Onlongclick causes the callback to be not reached.
Xiaomi phone notification cannot be notified: Activity additions such as the following properties.
< Intent-filter >
< Action android:name="Android.intent.action.MAIN"/>
</ Intent-filter >
Desktop shortcut, the application uses the process, the user points out HOME key, sometimes click the desktop shortcut, the program can not go back to the original place, but from the program list, click the application icon, and can go back.
1. Print out long press the icon in the program list and create a shortcut on the desktop.
2. Get the number of its references.
3. discover that the shortcut generated by dragging has two new values:flag 0x1020000 by lookup. And the following two values:
Intent.addflags (Intent. Flag_activity_new_task);
Intent.addflags (Intent. Flag_activity_reset_task_if_needed);
After the increase, the problem is resolved.
Android ListView and Tips.