Android 10.0 SystemUI Modifique o espaçamento de cada notificação na barra de notificação suspensa

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

Acho que você gosta

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