Android10.0SystemUIドロップダウン通知バーの各通知の間隔を変更します

ネイティブのSystemUIでは、プルダウンステータスバーの各通知間の距離が水平線で区切られているため、あまり美しくないため、カスタマイズした変更を行う必要があります。
最初の選択肢は、ソースコード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

おすすめ

転載: blog.csdn.net/baidu_41666295/article/details/123862616