Loading res/flag(com.android.documentsui.flags.use_material3)/color/sort_icon_ripple_color.xml 0 → 100644 +20 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2025 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. --> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:alpha="@dimen/ripple_overlay_alpha" android:color="?attr/colorOnSurface"/> </selector> res/flag(com.android.documentsui.flags.use_material3)/drawable/ic_arrow_upward.xml +7 −7 Original line number Diff line number Diff line Loading @@ -15,12 +15,12 @@ limitations under the License. --> <vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="28dp" android:height="32dp" android:viewportHeight="32" android:viewportWidth="28"> android:width="20dp" android:height="20dp" android:viewportWidth="960" android:viewportHeight="960" android:tint="?attr/colorOnSurface"> <path android:fillColor="?attr/colorOnSecondaryContainer" android:pathData="M13.25 19.125V10.75c0-.208.07-.382.208-.52A.74.74 0 0 1 14 10c.208 0 .382.076.52.23.154.138.23.312.23.52v8.375l3.667-3.667a.718.718 0 0 1 .52-.229c.209 0 .39.077.542.23.153.152.23.333.23.541a.718.718 0 0 1-.23.52l-4.958 4.96a.786.786 0 0 1-.25.166.85.85 0 0 1-.271.041c-.097 0-.194-.013-.292-.041a.878.878 0 0 1-.229-.167l-4.958-4.958A.718.718 0 0 1 8.29 16a.822.822 0 0 1 .25-.542.718.718 0 0 1 .521-.229.74.74 0 0 1 .542.23l3.646 3.666Z" /> android:fillColor="@android:color/white" android:pathData="M444,630L444,227.98Q444,212.69 454.29,202.34Q464.58,192 479.79,192Q495,192 505.5,202.34Q516,212.69 516,227.98L516,630L692.21,453.79Q703,443 717.5,443Q732,443 743.48,454Q754,465 754,479.5Q754,494 743.18,504.81L505.09,742.6Q499.68,748 493.37,750.5Q487.06,753 479.84,753Q472.63,753 466.31,750.5Q460,748 455,743L217,505Q206,494 206.5,479.5Q207,465 217.52,454Q229,443 243.67,443Q258.33,443 269,454L444,630Z"/> </vector> No newline at end of file res/flag(com.android.documentsui.flags.use_material3)/drawable/ic_sort_arrow.xml +1 −1 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ --> <rotate xmlns:android="http://schemas.android.com/apk/res/android" android:drawable="@drawable/ic_sort_icon" android:drawable="@drawable/ic_arrow_upward" android:fromDegrees="0" android:toDegrees="180" android:pivotX="50%" Loading res/flag(com.android.documentsui.flags.use_material3)/drawable/ic_sort_icon.xmldeleted 100644 → 0 +0 −98 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2024 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. --> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_focused="true" android:state_hovered="true"> <layer-list> <item> <shape android:background="?attr/colorSurfaceBright" android:shape="rectangle" android:tint="?attr/colorSecondaryContainer" android:tintMode="multiply"> <corners android:radius="14dp" /> <size android:width="28dp" android:height="32dp" /> <solid android:color="?attr/colorSecondaryContainer" /> <stroke android:width="@dimen/focus_ring_width" android:color="?attr/colorSecondary" /> </shape> </item> <item android:drawable="@drawable/ic_arrow_upward" /> </layer-list> </item> <item android:state_focused="false" android:state_hovered="true"> <layer-list> <item> <shape android:background="?attr/colorSurfaceBright" android:shape="rectangle" android:tint="?attr/colorSecondaryContainer" android:tintMode="multiply"> <corners android:radius="14dp" /> <size android:width="28dp" android:height="32dp" /> <solid android:color="?attr/colorSecondaryContainer" /> </shape> </item> <item android:drawable="@drawable/ic_arrow_upward" /> </layer-list> </item> <item android:state_focused="true" android:state_hovered="false"> <layer-list> <item> <shape android:background="?attr/colorSurfaceBright" android:shape="rectangle"> <corners android:radius="14dp" /> <size android:width="28dp" android:height="32dp" /> <solid android:color="?attr/colorSecondaryContainer" /> <stroke android:width="@dimen/focus_ring_width" android:color="?attr/colorSecondary" /> </shape> </item> <item android:drawable="@drawable/ic_arrow_upward" /> </layer-list> </item> <item> <layer-list> <item> <shape android:background="?attr/colorSurfaceBright" android:shape="rectangle"> <corners android:radius="14dp" /> <size android:width="28dp" android:height="32dp" /> <solid android:color="?attr/colorSecondaryContainer" /> </shape> </item> <item android:drawable="@drawable/ic_arrow_upward" /> </layer-list> </item> </selector> No newline at end of file res/flag(com.android.documentsui.flags.use_material3)/drawable/selection_circle.xml +15 −17 Original line number Diff line number Diff line Loading @@ -13,33 +13,31 @@ See the License for the specific language governing permissions and limitations under the License. --> <!-- Draw a 20% black circle with essentially 2 strokes, the inner stroke is white and 2dp wide, the outer stroke is 20% black and 1dp wide. To achieve this draw a bigger circle to be the outer stroke, then draw the inner circle on top that contains both the circle and the inner stroke. --> <!-- Draw a 5% black circle with a white stroke. Simulate a shadow by drawing 20% black ring at a 1dp offset from the circle. --> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <!-- The outer 1dp 20% black stroke. --> <item android:bottom="@dimen/selection_outer_circle_padding" android:left="@dimen/selection_outer_circle_padding" android:right="@dimen/selection_outer_circle_padding" android:top="@dimen/selection_outer_circle_padding"> <!-- The 20% black ring acting as a shadow. --> <item android:bottom="@dimen/selection_circle_shadow_bottom_offset" android:left="@dimen/selection_circle_shadow_left_offset" android:right="@dimen/selection_circle_shadow_right_offset" android:top="@dimen/selection_circle_shadow_top_offset"> <shape android:shape="oval"> <solid android:color="@android:color/transparent" /> <stroke android:width="@dimen/selection_outer_stroke_size" android:color="@color/selection_circle_black" /> android:width="@dimen/selection_stroke_size" android:color="@color/selection_shadow_black" /> </shape> </item> <!-- The inner 2 dp white stroke on a 20% black circle. --> <!-- The 5% black circle with a 2 dp white stroke. --> <item android:bottom="@dimen/selection_inner_circle_padding" android:left="@dimen/selection_inner_circle_padding" android:right="@dimen/selection_inner_circle_padding" android:top="@dimen/selection_inner_circle_padding"> android:bottom="@dimen/selection_circle_offset" android:left="@dimen/selection_circle_offset" android:right="@dimen/selection_circle_offset" android:top="@dimen/selection_circle_offset"> <shape android:shape="oval"> <solid android:color="@color/selection_circle_black"/> <stroke android:width="@dimen/selection_inner_stroke_size" android:width="@dimen/selection_stroke_size" android:color="@android:color/white" /> </shape> </item> Loading Loading
res/flag(com.android.documentsui.flags.use_material3)/color/sort_icon_ripple_color.xml 0 → 100644 +20 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2025 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. --> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:alpha="@dimen/ripple_overlay_alpha" android:color="?attr/colorOnSurface"/> </selector>
res/flag(com.android.documentsui.flags.use_material3)/drawable/ic_arrow_upward.xml +7 −7 Original line number Diff line number Diff line Loading @@ -15,12 +15,12 @@ limitations under the License. --> <vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="28dp" android:height="32dp" android:viewportHeight="32" android:viewportWidth="28"> android:width="20dp" android:height="20dp" android:viewportWidth="960" android:viewportHeight="960" android:tint="?attr/colorOnSurface"> <path android:fillColor="?attr/colorOnSecondaryContainer" android:pathData="M13.25 19.125V10.75c0-.208.07-.382.208-.52A.74.74 0 0 1 14 10c.208 0 .382.076.52.23.154.138.23.312.23.52v8.375l3.667-3.667a.718.718 0 0 1 .52-.229c.209 0 .39.077.542.23.153.152.23.333.23.541a.718.718 0 0 1-.23.52l-4.958 4.96a.786.786 0 0 1-.25.166.85.85 0 0 1-.271.041c-.097 0-.194-.013-.292-.041a.878.878 0 0 1-.229-.167l-4.958-4.958A.718.718 0 0 1 8.29 16a.822.822 0 0 1 .25-.542.718.718 0 0 1 .521-.229.74.74 0 0 1 .542.23l3.646 3.666Z" /> android:fillColor="@android:color/white" android:pathData="M444,630L444,227.98Q444,212.69 454.29,202.34Q464.58,192 479.79,192Q495,192 505.5,202.34Q516,212.69 516,227.98L516,630L692.21,453.79Q703,443 717.5,443Q732,443 743.48,454Q754,465 754,479.5Q754,494 743.18,504.81L505.09,742.6Q499.68,748 493.37,750.5Q487.06,753 479.84,753Q472.63,753 466.31,750.5Q460,748 455,743L217,505Q206,494 206.5,479.5Q207,465 217.52,454Q229,443 243.67,443Q258.33,443 269,454L444,630Z"/> </vector> No newline at end of file
res/flag(com.android.documentsui.flags.use_material3)/drawable/ic_sort_arrow.xml +1 −1 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ --> <rotate xmlns:android="http://schemas.android.com/apk/res/android" android:drawable="@drawable/ic_sort_icon" android:drawable="@drawable/ic_arrow_upward" android:fromDegrees="0" android:toDegrees="180" android:pivotX="50%" Loading
res/flag(com.android.documentsui.flags.use_material3)/drawable/ic_sort_icon.xmldeleted 100644 → 0 +0 −98 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2024 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. --> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_focused="true" android:state_hovered="true"> <layer-list> <item> <shape android:background="?attr/colorSurfaceBright" android:shape="rectangle" android:tint="?attr/colorSecondaryContainer" android:tintMode="multiply"> <corners android:radius="14dp" /> <size android:width="28dp" android:height="32dp" /> <solid android:color="?attr/colorSecondaryContainer" /> <stroke android:width="@dimen/focus_ring_width" android:color="?attr/colorSecondary" /> </shape> </item> <item android:drawable="@drawable/ic_arrow_upward" /> </layer-list> </item> <item android:state_focused="false" android:state_hovered="true"> <layer-list> <item> <shape android:background="?attr/colorSurfaceBright" android:shape="rectangle" android:tint="?attr/colorSecondaryContainer" android:tintMode="multiply"> <corners android:radius="14dp" /> <size android:width="28dp" android:height="32dp" /> <solid android:color="?attr/colorSecondaryContainer" /> </shape> </item> <item android:drawable="@drawable/ic_arrow_upward" /> </layer-list> </item> <item android:state_focused="true" android:state_hovered="false"> <layer-list> <item> <shape android:background="?attr/colorSurfaceBright" android:shape="rectangle"> <corners android:radius="14dp" /> <size android:width="28dp" android:height="32dp" /> <solid android:color="?attr/colorSecondaryContainer" /> <stroke android:width="@dimen/focus_ring_width" android:color="?attr/colorSecondary" /> </shape> </item> <item android:drawable="@drawable/ic_arrow_upward" /> </layer-list> </item> <item> <layer-list> <item> <shape android:background="?attr/colorSurfaceBright" android:shape="rectangle"> <corners android:radius="14dp" /> <size android:width="28dp" android:height="32dp" /> <solid android:color="?attr/colorSecondaryContainer" /> </shape> </item> <item android:drawable="@drawable/ic_arrow_upward" /> </layer-list> </item> </selector> No newline at end of file
res/flag(com.android.documentsui.flags.use_material3)/drawable/selection_circle.xml +15 −17 Original line number Diff line number Diff line Loading @@ -13,33 +13,31 @@ See the License for the specific language governing permissions and limitations under the License. --> <!-- Draw a 20% black circle with essentially 2 strokes, the inner stroke is white and 2dp wide, the outer stroke is 20% black and 1dp wide. To achieve this draw a bigger circle to be the outer stroke, then draw the inner circle on top that contains both the circle and the inner stroke. --> <!-- Draw a 5% black circle with a white stroke. Simulate a shadow by drawing 20% black ring at a 1dp offset from the circle. --> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <!-- The outer 1dp 20% black stroke. --> <item android:bottom="@dimen/selection_outer_circle_padding" android:left="@dimen/selection_outer_circle_padding" android:right="@dimen/selection_outer_circle_padding" android:top="@dimen/selection_outer_circle_padding"> <!-- The 20% black ring acting as a shadow. --> <item android:bottom="@dimen/selection_circle_shadow_bottom_offset" android:left="@dimen/selection_circle_shadow_left_offset" android:right="@dimen/selection_circle_shadow_right_offset" android:top="@dimen/selection_circle_shadow_top_offset"> <shape android:shape="oval"> <solid android:color="@android:color/transparent" /> <stroke android:width="@dimen/selection_outer_stroke_size" android:color="@color/selection_circle_black" /> android:width="@dimen/selection_stroke_size" android:color="@color/selection_shadow_black" /> </shape> </item> <!-- The inner 2 dp white stroke on a 20% black circle. --> <!-- The 5% black circle with a 2 dp white stroke. --> <item android:bottom="@dimen/selection_inner_circle_padding" android:left="@dimen/selection_inner_circle_padding" android:right="@dimen/selection_inner_circle_padding" android:top="@dimen/selection_inner_circle_padding"> android:bottom="@dimen/selection_circle_offset" android:left="@dimen/selection_circle_offset" android:right="@dimen/selection_circle_offset" android:top="@dimen/selection_circle_offset"> <shape android:shape="oval"> <solid android:color="@color/selection_circle_black"/> <stroke android:width="@dimen/selection_inner_stroke_size" android:width="@dimen/selection_stroke_size" android:color="@android:color/white" /> </shape> </item> Loading