Add MemoryUsageView
This commit is contained in:
@@ -34,9 +34,8 @@
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<include
|
||||
android:id="@+id/layout_storage"
|
||||
layout="@layout/layout_memory_usage"
|
||||
<org.koitharu.kotatsu.settings.tools.views.MemoryUsageView
|
||||
android:id="@+id/memory_usage_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
<merge
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:paddingStart="@dimen/screen_padding"
|
||||
android:paddingTop="@dimen/margin_small"
|
||||
android:paddingBottom="@dimen/screen_padding"
|
||||
tools:ignore="RtlSymmetry">
|
||||
android:layout_height="wrap_content"
|
||||
tools:ignore="RtlSymmetry"
|
||||
tools:orientation="vertical"
|
||||
tools:parentTag="android.widget.LinearLayout">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/screen_padding"
|
||||
android:layout_marginTop="@dimen/margin_small">
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
@@ -36,6 +36,7 @@
|
||||
android:id="@+id/bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="16dp"
|
||||
android:layout_marginStart="@dimen/screen_padding"
|
||||
android:layout_marginEnd="@dimen/screen_padding"
|
||||
android:background="?colorSecondaryContainer" />
|
||||
|
||||
@@ -44,49 +45,48 @@
|
||||
style="@style/Widget.Kotatsu.TextView.Indicator"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/screen_padding"
|
||||
android:layout_marginTop="@dimen/margin_normal"
|
||||
android:layout_marginEnd="@dimen/screen_padding"
|
||||
android:text="@string/saved_manga"
|
||||
android:visibility="gone"
|
||||
app:drawableStartCompat="@drawable/bg_circle"
|
||||
tools:drawableTint="?colorPrimary"
|
||||
tools:visibility="visible" />
|
||||
tools:drawableTint="?colorPrimary" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/label_pages_cache"
|
||||
style="@style/Widget.Kotatsu.TextView.Indicator"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/screen_padding"
|
||||
android:layout_marginTop="@dimen/margin_small"
|
||||
android:layout_marginEnd="@dimen/screen_padding"
|
||||
android:text="@string/pages_cache"
|
||||
android:visibility="gone"
|
||||
app:drawableStartCompat="@drawable/bg_circle"
|
||||
tools:drawableTint="?colorSecondary"
|
||||
tools:visibility="visible" />
|
||||
tools:drawableTint="?colorSecondary" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/label_other_cache"
|
||||
style="@style/Widget.Kotatsu.TextView.Indicator"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/screen_padding"
|
||||
android:layout_marginTop="@dimen/margin_small"
|
||||
android:layout_marginEnd="@dimen/screen_padding"
|
||||
android:text="@string/other_cache"
|
||||
android:visibility="gone"
|
||||
app:drawableStartCompat="@drawable/bg_circle"
|
||||
tools:drawableTint="?colorTertiary"
|
||||
tools:visibility="visible" />
|
||||
tools:drawableTint="?colorTertiary" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/label_available"
|
||||
style="@style/Widget.Kotatsu.TextView.Indicator"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/screen_padding"
|
||||
android:layout_marginTop="@dimen/margin_small"
|
||||
android:layout_marginEnd="@dimen/screen_padding"
|
||||
android:layout_marginBottom="@dimen/screen_padding"
|
||||
android:text="@string/computing_"
|
||||
app:drawableStartCompat="@drawable/bg_circle"
|
||||
app:drawableTint="?colorSecondaryContainer" />
|
||||
|
||||
</LinearLayout>
|
||||
</merge>
|
||||
|
||||
Reference in New Issue
Block a user