Android 10.0 SystemUI Modifique el espaciado de cada notificación en la barra de notificación desplegable

En el SystemUI nativo, la distancia entre cada notificación en la barra de estado desplegable está separada por una línea horizontal, que no es muy bonita, por lo que es necesario realizar cambios personalizados. La
primera opción es ver el código fuente NotificationChildrenContainer. Java

Versión: 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

Supongo que te gusta

Origin blog.csdn.net/baidu_41666295/article/details/123862616
Recomendado
Clasificación