Merge "[Expressive Design] Migrate Storage settings pages" into main
This commit is contained in:
17
res/drawable/storage_progress_bar.xml
Normal file
17
res/drawable/storage_progress_bar.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:id="@android:id/background">
|
||||
<shape>
|
||||
<corners android:radius="8dp" />
|
||||
<solid android:color="@color/settingslib_materialColorSurfaceContainerHighest" />
|
||||
</shape>
|
||||
</item>
|
||||
<item android:id="@android:id/progress">
|
||||
<clip>
|
||||
<shape>
|
||||
<corners android:radius="8dp" />
|
||||
<solid android:color="@color/settingslib_materialColorPrimary" />
|
||||
</shape>
|
||||
</clip>
|
||||
</item>
|
||||
</layer-list>
|
@@ -74,7 +74,8 @@
|
||||
android:max="100"
|
||||
android:layout_below="@android:id/title"
|
||||
app:layout_constraintTop_toBottomOf="@android:id/title"
|
||||
style="?android:attr/progressBarStyleHorizontal" />
|
||||
style="?android:attr/progressBarStyleHorizontal"
|
||||
android:progressDrawable="@drawable/storage_progress_bar" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
@@ -38,7 +38,7 @@
|
||||
android:icon="@drawable/ic_storage"
|
||||
android:order="3"
|
||||
settings:controller="com.android.settings.deviceinfo.storage.AutomaticStorageManagementSwitchPreferenceController"/>
|
||||
<com.android.settings.widget.CardPreference
|
||||
<com.android.settingslib.widget.CardPreference
|
||||
android:key="free_up_space"
|
||||
android:order="4"
|
||||
android:title="@string/storage_free_up_space_title"
|
||||
|
Reference in New Issue
Block a user