No SystemUI nativo, a distância entre cada notificação na barra de status pull-down é separada por uma linha horizontal, o que não é muito bonito, por isso é necessário fazer alterações personalizadas.A
primeira escolha é ver o código fonte NotificationChildrenContainer. Java
路径为:frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationChildrenContainer.java
/**
* Add a child notification to this view.
*
* @param row the row to add
* @param childIndex the index to add it at, if -1 it will be added at the end
*/
public void addNotification(ExpandableNotificationRow row, int childIndex) {
int newIndex = childIndex < 0 ? mChildren.size