Tracker fixes

This commit is contained in:
Koitharu
2020-06-03 18:52:00 +03:00
parent e01b74ee3d
commit 680fc66f21
16 changed files with 97 additions and 81 deletions

View File

@@ -40,12 +40,12 @@
android:layout_width="match_parent"
android:layout_height="?android:listPreferredItemHeightSmall"
android:background="?android:selectableItemBackground"
android:drawableEnd="@drawable/ic_add"
android:gravity="start|center_vertical"
android:paddingStart="?android:listPreferredItemPaddingStart"
android:paddingEnd="?android:listPreferredItemPaddingEnd"
android:text="@string/add_new_category"
android:textAppearance="@style/TextAppearance.MaterialComponents.Body1"
android:textColor="?android:textColorPrimary" />
android:textColor="?android:textColorPrimary"
app:drawableEndCompat="@drawable/ic_add" />
</LinearLayout>

View File

@@ -6,7 +6,8 @@
android:layout_height="?android:listPreferredItemHeightSmall"
android:background="?android:windowBackground"
android:gravity="center_vertical"
android:orientation="horizontal">
android:orientation="horizontal"
tools:ignore="Overdraw">
<ImageView
android:id="@+id/imageView_handle"

View File

@@ -89,10 +89,10 @@
android:id="@+id/textView_rating"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableStart="@drawable/ic_star_rating"
android:drawablePadding="4dp"
android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"
tools:text="10/10" />
tools:text="10/10"
app:drawableStartCompat="@drawable/ic_star_rating" />
</LinearLayout>

View File

@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
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:background="?android:windowBackground"
android:layout_width="match_parent"
@@ -33,11 +34,11 @@
android:id="@+id/textView_error"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableTop="@drawable/ic_error_large"
android:drawablePadding="12dp"
android:gravity="center_horizontal"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
tools:text="@tools:sample/lorem[6]" />
tools:text="@tools:sample/lorem[6]"
app:drawableTopCompat="@drawable/ic_error_large" />
<com.google.android.material.button.MaterialButton
android:id="@+id/button_retry"

View File

@@ -36,11 +36,11 @@
android:id="@+id/textView_error"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableTop="@drawable/ic_error_large"
android:drawablePadding="12dp"
android:gravity="center_horizontal"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
tools:text="@tools:sample/lorem[6]" />
tools:text="@tools:sample/lorem[6]"
app:drawableTopCompat="@drawable/ic_error_large" />
<com.google.android.material.button.MaterialButton
android:id="@+id/button_retry"

View File

@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<TextView
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="?listPreferredItemHeightSmall"
android:background="?selectableItemBackground"
android:drawableStart="@drawable/ic_history"
android:drawablePadding="20dp"
android:gravity="center_vertical"
android:paddingStart="?listPreferredItemPaddingStart"
@@ -13,4 +13,5 @@
android:textAppearance="?textAppearanceListItemSmall"
android:textColor="?android:textColorPrimary"
android:theme="@style/AppPopupTheme"
tools:text="@tools:sample/full_names" />
tools:text="@tools:sample/full_names"
app:drawableStartCompat="@drawable/ic_history" />

View File

@@ -1,17 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<menu
xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/action_save_this"
android:title="@string/save_this_chapter" />
<item
android:id="@+id/action_save_this_next"
android:title="@string/save_this_chapter_and_next" />
<item
android:id="@+id/action_save_this_prev"
android:title="@string/save_this_chapter_and_prev" />
</menu>

View File

@@ -38,9 +38,6 @@
<string name="processing_">Обработка…</string>
<string name="download_complete">Загрузка завершена</string>
<string name="downloads">Загрузки</string>
<string name="save_this_chapter_and_prev">Сохранить предыдущие главы</string>
<string name="save_this_chapter_and_next">Сохранить следующие главы</string>
<string name="save_this_chapter">Сохранить эту главу</string>
<string name="by_name">По имени</string>
<string name="popular">Популярная</string>
<string name="updated">Обновлённая</string>

View File

@@ -39,9 +39,6 @@
<string name="processing_">Processing…</string>
<string name="download_complete">Download complete</string>
<string name="downloads">Downloads</string>
<string name="save_this_chapter_and_prev">Save this chapter and prev.</string>
<string name="save_this_chapter_and_next">Save this chapter and next</string>
<string name="save_this_chapter">Save this chapter</string>
<string name="by_name">By name</string>
<string name="popular">Popular</string>
<string name="updated">Updated</string>