Tips:
ListView nested ListView, when there is Footerview, need to re-measure height, footerview the topmost view cannot be relativelayout, It is best to use linearlayout bag relativelayout.
View.measure (0,0) will report an exception.
ListView plus Headerview, in Onitemclick, position the Headerview counted in.
EditText android:textcursordrawable= "@null" to darken the cursor. Flashing
Ontouch event if return true. The onclick, Onlongclick causes the callback to be not reached.
Xiaomi phone notification cannot be notified: Activity adds the following attributes.
< 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 then go back.
1. Print out long press the icon in the program list and create a shortcut on the desktop.
2. Get the parameters for it.
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 joining, resolve this issue.