Loading packages/SystemUI/res/drawable/ic_bubble_overflow_button.xml 0 → 100644 +23 −0 Original line number Diff line number Diff line <!-- Copyright (C) 2020 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <vector xmlns:android="http://schemas.android.com/apk/res/android" android:viewportHeight="24" android:viewportWidth="24" android:height="52dp" android:width="52dp"> <path android:fillColor="#1A73E8" android:pathData="M6,10c-1.1,0 -2,0.9 -2,2s0.9,2 2,2 2,-0.9 2,-2 -0.9,-2 -2,-2zM18,10c-1.1,0 -2,0.9 -2,2s0.9,2 2,2 2,-0.9 2,-2 -0.9,-2 -2,-2zM12,10c-1.1,0 -2,0.9 -2,2s0.9,2 2,2 2,-0.9 2,-2 -0.9,-2 -2,-2z"/> </vector> No newline at end of file packages/SystemUI/res/layout/bubble_overflow_activity.xml +4 −3 Original line number Diff line number Diff line Loading @@ -13,8 +13,9 @@ ~ See the License for the specific language governing permissions and ~ limitations under the License --> <androidx.recyclerview.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/bubble_overflow_recycler" android:scrollbars="vertical" android:layout_width="wrap_content" android:layout_height="match_parent"/> android:layout_gravity="center_horizontal" android:layout_width="match_parent" android:layout_height="wrap_content"/> packages/SystemUI/res/layout/bubble_overflow_button.xml 0 → 100644 +24 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- ~ Copyright (C) 2020 The Android Open Source Project ~ ~ Licensed under the Apache License, Version 2.0 (the "License"); ~ you may not use this file except in compliance with the License. ~ You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by applicable law or agreed to in writing, software ~ distributed under the License is distributed on an "AS IS" BASIS, ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ~ See the License for the specific language governing permissions and ~ limitations under the License --> <ImageView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/bubble_overflow_button" android:layout_width="@dimen/individual_bubble_size" android:layout_height="@dimen/individual_bubble_size" android:src="@drawable/ic_bubble_overflow_button" android:scaleType="center" android:layout_gravity="end"/> packages/SystemUI/res/values/integers.xml +6 −0 Original line number Diff line number Diff line Loading @@ -27,6 +27,12 @@ performance issues arise. --> <integer name="bubbles_max_rendered">5</integer> <!-- Number of columns in bubble overflow. --> <integer name="bubbles_overflow_columns">4</integer> <!-- Maximum number of bubbles we allow in overflow before we dismiss the oldest one. --> <integer name="bubbles_max_overflow">16</integer> <!-- Ratio of "left" end of status bar that will swipe to QQS. --> <integer name="qqs_split_fraction">3</integer> <!-- Ratio of "right" end of status bar that will swipe to QS. --> Loading packages/SystemUI/src/com/android/systemui/bubbles/BadgedImageView.java +4 −4 Original line number Diff line number Diff line Loading @@ -89,12 +89,12 @@ public class BadgedImageView extends ImageView { /** * Updates the view with provided info. */ public void update(Bubble bubble, Bitmap bubbleImage, int dotColor, Path dotPath) { public void update(Bubble bubble) { mBubble = bubble; setImageBitmap(bubbleImage); setImageBitmap(bubble.getBadgedImage()); setDotState(DOT_STATE_SUPPRESSED_FOR_FLYOUT); mDotColor = dotColor; drawDot(dotPath); mDotColor = bubble.getDotColor(); drawDot(bubble.getDotPath()); animateDot(); } Loading Loading
packages/SystemUI/res/drawable/ic_bubble_overflow_button.xml 0 → 100644 +23 −0 Original line number Diff line number Diff line <!-- Copyright (C) 2020 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <vector xmlns:android="http://schemas.android.com/apk/res/android" android:viewportHeight="24" android:viewportWidth="24" android:height="52dp" android:width="52dp"> <path android:fillColor="#1A73E8" android:pathData="M6,10c-1.1,0 -2,0.9 -2,2s0.9,2 2,2 2,-0.9 2,-2 -0.9,-2 -2,-2zM18,10c-1.1,0 -2,0.9 -2,2s0.9,2 2,2 2,-0.9 2,-2 -0.9,-2 -2,-2zM12,10c-1.1,0 -2,0.9 -2,2s0.9,2 2,2 2,-0.9 2,-2 -0.9,-2 -2,-2z"/> </vector> No newline at end of file
packages/SystemUI/res/layout/bubble_overflow_activity.xml +4 −3 Original line number Diff line number Diff line Loading @@ -13,8 +13,9 @@ ~ See the License for the specific language governing permissions and ~ limitations under the License --> <androidx.recyclerview.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/bubble_overflow_recycler" android:scrollbars="vertical" android:layout_width="wrap_content" android:layout_height="match_parent"/> android:layout_gravity="center_horizontal" android:layout_width="match_parent" android:layout_height="wrap_content"/>
packages/SystemUI/res/layout/bubble_overflow_button.xml 0 → 100644 +24 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- ~ Copyright (C) 2020 The Android Open Source Project ~ ~ Licensed under the Apache License, Version 2.0 (the "License"); ~ you may not use this file except in compliance with the License. ~ You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by applicable law or agreed to in writing, software ~ distributed under the License is distributed on an "AS IS" BASIS, ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ~ See the License for the specific language governing permissions and ~ limitations under the License --> <ImageView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/bubble_overflow_button" android:layout_width="@dimen/individual_bubble_size" android:layout_height="@dimen/individual_bubble_size" android:src="@drawable/ic_bubble_overflow_button" android:scaleType="center" android:layout_gravity="end"/>
packages/SystemUI/res/values/integers.xml +6 −0 Original line number Diff line number Diff line Loading @@ -27,6 +27,12 @@ performance issues arise. --> <integer name="bubbles_max_rendered">5</integer> <!-- Number of columns in bubble overflow. --> <integer name="bubbles_overflow_columns">4</integer> <!-- Maximum number of bubbles we allow in overflow before we dismiss the oldest one. --> <integer name="bubbles_max_overflow">16</integer> <!-- Ratio of "left" end of status bar that will swipe to QQS. --> <integer name="qqs_split_fraction">3</integer> <!-- Ratio of "right" end of status bar that will swipe to QS. --> Loading
packages/SystemUI/src/com/android/systemui/bubbles/BadgedImageView.java +4 −4 Original line number Diff line number Diff line Loading @@ -89,12 +89,12 @@ public class BadgedImageView extends ImageView { /** * Updates the view with provided info. */ public void update(Bubble bubble, Bitmap bubbleImage, int dotColor, Path dotPath) { public void update(Bubble bubble) { mBubble = bubble; setImageBitmap(bubbleImage); setImageBitmap(bubble.getBadgedImage()); setDotState(DOT_STATE_SUPPRESSED_FOR_FLYOUT); mDotColor = dotColor; drawDot(dotPath); mDotColor = bubble.getDotColor(); drawDot(bubble.getDotPath()); animateDot(); } Loading