mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 01:51:51 +01:00
Minor formatting
This commit is contained in:
parent
f4bb9b604a
commit
f1cca207fc
@ -41,7 +41,6 @@ open class CheckboxItem(val filter: Filter.CheckBox) : AbstractFlexibleItem<Chec
|
|||||||
}
|
}
|
||||||
|
|
||||||
class Holder(view: View, adapter: FlexibleAdapter<*>) : FlexibleViewHolder(view, adapter) {
|
class Holder(view: View, adapter: FlexibleAdapter<*>) : FlexibleViewHolder(view, adapter) {
|
||||||
|
|
||||||
val check: CheckBox = itemView.findViewById(R.id.nav_view_item)
|
val check: CheckBox = itemView.findViewById(R.id.nav_view_item)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,6 @@ class GroupItem(val filter: Filter.Group<*>) : AbstractExpandableHeaderItem<Grou
|
|||||||
R.drawable.ic_chevron_right_white_24dp)
|
R.drawable.ic_chevron_right_white_24dp)
|
||||||
|
|
||||||
holder.itemView.setOnClickListener(holder)
|
holder.itemView.setOnClickListener(holder)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun equals(other: Any?): Boolean {
|
override fun equals(other: Any?): Boolean {
|
||||||
@ -53,15 +52,12 @@ class GroupItem(val filter: Filter.Group<*>) : AbstractExpandableHeaderItem<Grou
|
|||||||
return filter.hashCode()
|
return filter.hashCode()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
open class Holder(view: View, adapter: FlexibleAdapter<*>) : ExpandableViewHolder(view, adapter, true) {
|
open class Holder(view: View, adapter: FlexibleAdapter<*>) : ExpandableViewHolder(view, adapter, true) {
|
||||||
|
|
||||||
val title: TextView = itemView.findViewById(R.id.title)
|
val title: TextView = itemView.findViewById(R.id.title)
|
||||||
val icon: ImageView = itemView.findViewById(R.id.expand_icon)
|
val icon: ImageView = itemView.findViewById(R.id.expand_icon)
|
||||||
|
|
||||||
override fun shouldNotifyParentOnClick(): Boolean {
|
override fun shouldNotifyParentOnClick(): Boolean {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,6 @@ class SeparatorItem(val filter: Filter.Separator) : AbstractHeaderItem<Separator
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun bindViewHolder(adapter: FlexibleAdapter<IFlexible<RecyclerView.ViewHolder>>, holder: Holder, position: Int, payloads: List<Any?>?) {
|
override fun bindViewHolder(adapter: FlexibleAdapter<IFlexible<RecyclerView.ViewHolder>>, holder: Holder, position: Int, payloads: List<Any?>?) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun equals(other: Any?): Boolean {
|
override fun equals(other: Any?): Boolean {
|
||||||
|
@ -37,7 +37,6 @@ class SortGroup(val filter: Filter.Sort) : AbstractExpandableHeaderItem<SortGrou
|
|||||||
R.drawable.ic_chevron_right_white_24dp)
|
R.drawable.ic_chevron_right_white_24dp)
|
||||||
|
|
||||||
holder.itemView.setOnClickListener(holder)
|
holder.itemView.setOnClickListener(holder)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun equals(other: Any?): Boolean {
|
override fun equals(other: Any?): Boolean {
|
||||||
|
@ -69,7 +69,6 @@ class SortItem(val name: String, val group: SortGroup) : AbstractSectionableItem
|
|||||||
}
|
}
|
||||||
|
|
||||||
class Holder(view: View, adapter: FlexibleAdapter<*>) : FlexibleViewHolder(view, adapter) {
|
class Holder(view: View, adapter: FlexibleAdapter<*>) : FlexibleViewHolder(view, adapter) {
|
||||||
|
|
||||||
val text: CheckedTextView = itemView.findViewById(R.id.nav_view_item)
|
val text: CheckedTextView = itemView.findViewById(R.id.nav_view_item)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,7 +43,6 @@ open class TextItem(val filter: Filter.Text) : AbstractFlexibleItem<TextItem.Hol
|
|||||||
}
|
}
|
||||||
|
|
||||||
class Holder(view: View, adapter: FlexibleAdapter<*>) : FlexibleViewHolder(view, adapter) {
|
class Holder(view: View, adapter: FlexibleAdapter<*>) : FlexibleViewHolder(view, adapter) {
|
||||||
|
|
||||||
val wrapper: TextInputLayout = itemView.findViewById(R.id.nav_view_item_wrapper)
|
val wrapper: TextInputLayout = itemView.findViewById(R.id.nav_view_item_wrapper)
|
||||||
val edit: EditText = itemView.findViewById(R.id.nav_view_item)
|
val edit: EditText = itemView.findViewById(R.id.nav_view_item)
|
||||||
}
|
}
|
||||||
|
@ -64,7 +64,6 @@ open class TriStateItem(val filter: Filter.TriState) : AbstractFlexibleItem<TriS
|
|||||||
}
|
}
|
||||||
|
|
||||||
class Holder(view: View, adapter: FlexibleAdapter<*>) : FlexibleViewHolder(view, adapter) {
|
class Holder(view: View, adapter: FlexibleAdapter<*>) : FlexibleViewHolder(view, adapter) {
|
||||||
|
|
||||||
val text: CheckedTextView = itemView.findViewById(TR.id.nav_view_item)
|
val text: CheckedTextView = itemView.findViewById(TR.id.nav_view_item)
|
||||||
|
|
||||||
init {
|
init {
|
||||||
|
@ -1,16 +1,18 @@
|
|||||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools" tools:context=".CatalogueListActivity">
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
tools:context=".CatalogueListActivity">
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/action_search"
|
android:id="@+id/action_search"
|
||||||
android:title="@string/action_search"
|
|
||||||
android:icon="@drawable/ic_search_white_24dp"
|
android:icon="@drawable/ic_search_white_24dp"
|
||||||
app:showAsAction="collapseActionView|ifRoom"
|
android:title="@string/action_search"
|
||||||
app:actionViewClass="androidx.appcompat.widget.SearchView"/>
|
app:actionViewClass="androidx.appcompat.widget.SearchView"
|
||||||
|
app:showAsAction="collapseActionView|ifRoom" />
|
||||||
|
|
||||||
<item android:id="@+id/action_settings"
|
<item
|
||||||
android:title="@string/pref_category_sources"
|
android:id="@+id/action_settings"
|
||||||
android:icon="@drawable/ic_settings_white_24dp"
|
android:icon="@drawable/ic_settings_white_24dp"
|
||||||
app:showAsAction="ifRoom"/>
|
android:title="@string/pref_category_sources"
|
||||||
|
app:showAsAction="ifRoom" />
|
||||||
</menu>
|
</menu>
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools" tools:context=".CatalogueListActivity">
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
tools:context=".CatalogueListActivity">
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/action_search"
|
android:id="@+id/action_search"
|
||||||
android:title="@string/action_search"
|
|
||||||
android:icon="@drawable/ic_search_white_24dp"
|
android:icon="@drawable/ic_search_white_24dp"
|
||||||
app:showAsAction="collapseActionView|ifRoom"
|
android:title="@string/action_search"
|
||||||
app:actionViewClass="androidx.appcompat.widget.SearchView"/>
|
app:actionViewClass="androidx.appcompat.widget.SearchView"
|
||||||
|
app:showAsAction="collapseActionView|ifRoom" />
|
||||||
</menu>
|
</menu>
|
||||||
|
@ -1,16 +1,18 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||||
|
|
||||||
<item android:id="@+id/action_edit"
|
<item
|
||||||
android:title="@string/action_edit"
|
android:id="@+id/action_edit"
|
||||||
android:icon="@drawable/ic_create_white_24dp"
|
android:icon="@drawable/ic_create_white_24dp"
|
||||||
app:showAsAction="ifRoom"/>
|
android:title="@string/action_edit"
|
||||||
|
app:showAsAction="ifRoom" />
|
||||||
|
|
||||||
<item android:id="@+id/action_delete"
|
<item
|
||||||
android:title="@string/action_delete"
|
android:id="@+id/action_delete"
|
||||||
android:icon="@drawable/ic_delete_white_24dp"
|
android:icon="@drawable/ic_delete_white_24dp"
|
||||||
app:showAsAction="ifRoom"/>
|
android:title="@string/action_delete"
|
||||||
|
app:showAsAction="ifRoom" />
|
||||||
|
|
||||||
</menu>
|
</menu>
|
@ -1,28 +1,28 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/action_download"
|
android:id="@+id/action_download"
|
||||||
android:title="@string/action_download"
|
android:title="@string/action_download"
|
||||||
android:visible="true"
|
android:visible="true"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/action_delete"
|
android:id="@+id/action_delete"
|
||||||
android:title="@string/action_delete"
|
android:title="@string/action_delete"
|
||||||
android:visible="false"
|
android:visible="false"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/action_mark_as_read"
|
android:id="@+id/action_mark_as_read"
|
||||||
android:title="@string/action_mark_as_read"
|
android:title="@string/action_mark_as_read"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/action_mark_as_unread"
|
android:id="@+id/action_mark_as_unread"
|
||||||
android:title="@string/action_mark_as_unread"
|
android:title="@string/action_mark_as_unread"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
|
|
||||||
</menu>
|
</menu>
|
@ -1,30 +1,30 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/action_download"
|
android:id="@+id/action_download"
|
||||||
android:icon="@drawable/ic_file_download_white_24dp"
|
android:icon="@drawable/ic_file_download_white_24dp"
|
||||||
android:title="@string/action_download"
|
android:title="@string/action_download"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/action_delete"
|
android:id="@+id/action_delete"
|
||||||
android:icon="@drawable/ic_delete_white_24dp"
|
android:icon="@drawable/ic_delete_white_24dp"
|
||||||
android:title="@string/action_delete"
|
android:title="@string/action_delete"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/action_mark_as_read"
|
android:id="@+id/action_mark_as_read"
|
||||||
android:icon="@drawable/ic_done_all_white_24dp"
|
android:icon="@drawable/ic_done_all_white_24dp"
|
||||||
android:title="@string/action_mark_as_read"
|
android:title="@string/action_mark_as_read"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/action_mark_as_unread"
|
android:id="@+id/action_mark_as_unread"
|
||||||
android:icon="@drawable/ic_done_all_grey_24dp"
|
android:icon="@drawable/ic_done_all_grey_24dp"
|
||||||
android:title="@string/action_mark_as_unread"
|
android:title="@string/action_mark_as_unread"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
|
|
||||||
</menu>
|
</menu>
|
@ -3,29 +3,34 @@
|
|||||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||||
|
|
||||||
<item android:id="@+id/action_download"
|
<item
|
||||||
android:title="@string/action_download"
|
android:id="@+id/action_download"
|
||||||
android:icon="@drawable/ic_file_download_white_24dp"
|
android:icon="@drawable/ic_file_download_white_24dp"
|
||||||
app:showAsAction="ifRoom"/>
|
android:title="@string/action_download"
|
||||||
|
app:showAsAction="ifRoom" />
|
||||||
|
|
||||||
<item android:id="@+id/action_delete"
|
<item
|
||||||
android:title="@string/action_delete"
|
android:id="@+id/action_delete"
|
||||||
android:icon="@drawable/ic_delete_white_24dp"
|
android:icon="@drawable/ic_delete_white_24dp"
|
||||||
app:showAsAction="ifRoom"/>
|
android:title="@string/action_delete"
|
||||||
|
app:showAsAction="ifRoom" />
|
||||||
|
|
||||||
<item android:id="@+id/action_mark_as_read"
|
<item
|
||||||
android:title="@string/action_mark_as_read"
|
android:id="@+id/action_mark_as_read"
|
||||||
android:icon="@drawable/ic_done_all_white_24dp"
|
android:icon="@drawable/ic_done_all_white_24dp"
|
||||||
app:showAsAction="ifRoom"/>
|
android:title="@string/action_mark_as_read"
|
||||||
|
app:showAsAction="ifRoom" />
|
||||||
|
|
||||||
<item android:id="@+id/action_mark_as_unread"
|
<item
|
||||||
android:title="@string/action_mark_as_unread"
|
android:id="@+id/action_mark_as_unread"
|
||||||
android:icon="@drawable/ic_done_all_grey_24dp"
|
android:icon="@drawable/ic_done_all_grey_24dp"
|
||||||
app:showAsAction="ifRoom"/>
|
android:title="@string/action_mark_as_unread"
|
||||||
|
app:showAsAction="ifRoom" />
|
||||||
|
|
||||||
<item android:id="@+id/action_select_all"
|
<item
|
||||||
android:title="@string/action_select_all"
|
android:id="@+id/action_select_all"
|
||||||
android:icon="@drawable/ic_select_all_white_24dp"
|
android:icon="@drawable/ic_select_all_white_24dp"
|
||||||
app:showAsAction="ifRoom"/>
|
android:title="@string/action_select_all"
|
||||||
|
app:showAsAction="ifRoom" />
|
||||||
|
|
||||||
</menu>
|
</menu>
|
@ -2,30 +2,36 @@
|
|||||||
|
|
||||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
|
||||||
<item android:id="@+id/action_download"
|
<item
|
||||||
android:title="@string/action_download"
|
android:id="@+id/action_download"
|
||||||
android:visible="true" />
|
android:title="@string/action_download"
|
||||||
|
android:visible="true" />
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/action_delete"
|
android:id="@+id/action_delete"
|
||||||
android:title="@string/action_delete"
|
android:title="@string/action_delete"
|
||||||
android:visible="false"/>
|
android:visible="false" />
|
||||||
|
|
||||||
<item android:id="@+id/action_bookmark"
|
<item
|
||||||
android:title="@string/action_bookmark"
|
android:id="@+id/action_bookmark"
|
||||||
android:visible="true" />
|
android:title="@string/action_bookmark"
|
||||||
|
android:visible="true" />
|
||||||
|
|
||||||
<item android:id="@+id/action_remove_bookmark"
|
<item
|
||||||
android:title="@string/action_remove_bookmark"
|
android:id="@+id/action_remove_bookmark"
|
||||||
android:visible="true" />
|
android:title="@string/action_remove_bookmark"
|
||||||
|
android:visible="true" />
|
||||||
|
|
||||||
<item android:id="@+id/action_mark_as_read"
|
<item
|
||||||
android:title="@string/action_mark_as_read" />
|
android:id="@+id/action_mark_as_read"
|
||||||
|
android:title="@string/action_mark_as_read" />
|
||||||
|
|
||||||
<item android:id="@+id/action_mark_as_unread"
|
<item
|
||||||
android:title="@string/action_mark_as_unread" />
|
android:id="@+id/action_mark_as_unread"
|
||||||
|
android:title="@string/action_mark_as_unread" />
|
||||||
|
|
||||||
<item android:id="@+id/action_mark_previous_as_read"
|
<item
|
||||||
android:title="@string/action_mark_previous_as_read"/>
|
android:id="@+id/action_mark_previous_as_read"
|
||||||
|
android:title="@string/action_mark_previous_as_read" />
|
||||||
|
|
||||||
</menu>
|
</menu>
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/action_filter"
|
android:id="@+id/action_filter"
|
||||||
@ -11,22 +11,22 @@
|
|||||||
<item
|
<item
|
||||||
android:id="@+id/action_filter_read"
|
android:id="@+id/action_filter_read"
|
||||||
android:checkable="true"
|
android:checkable="true"
|
||||||
android:title="@string/action_filter_read"/>
|
android:title="@string/action_filter_read" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/action_filter_unread"
|
android:id="@+id/action_filter_unread"
|
||||||
android:checkable="true"
|
android:checkable="true"
|
||||||
android:title="@string/action_filter_unread"/>
|
android:title="@string/action_filter_unread" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/action_filter_downloaded"
|
android:id="@+id/action_filter_downloaded"
|
||||||
android:checkable="true"
|
android:checkable="true"
|
||||||
android:title="@string/action_filter_downloaded"/>
|
android:title="@string/action_filter_downloaded" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/action_filter_bookmarked"
|
android:id="@+id/action_filter_bookmarked"
|
||||||
android:checkable="true"
|
android:checkable="true"
|
||||||
android:title="@string/action_filter_bookmarked"/>
|
android:title="@string/action_filter_bookmarked" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/action_filter_empty"
|
android:id="@+id/action_filter_empty"
|
||||||
android:title="@string/action_filter_empty"/>
|
android:title="@string/action_filter_empty" />
|
||||||
</menu>
|
</menu>
|
||||||
</item>
|
</item>
|
||||||
|
|
||||||
@ -34,7 +34,7 @@
|
|||||||
android:id="@+id/action_sort"
|
android:id="@+id/action_sort"
|
||||||
android:icon="@drawable/ic_sort_by_numeric_white_24dp"
|
android:icon="@drawable/ic_sort_by_numeric_white_24dp"
|
||||||
android:title="@string/action_sort"
|
android:title="@string/action_sort"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/action_display_mode"
|
android:id="@+id/action_display_mode"
|
||||||
|
@ -1,22 +1,25 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||||
|
|
||||||
<item android:title="@string/action_start"
|
<item
|
||||||
android:id="@+id/start_queue"
|
android:id="@+id/start_queue"
|
||||||
android:icon="@drawable/ic_play_arrow_white_24dp"
|
android:icon="@drawable/ic_play_arrow_white_24dp"
|
||||||
android:visible="false"
|
android:title="@string/action_start"
|
||||||
app:showAsAction="ifRoom"/>
|
android:visible="false"
|
||||||
|
app:showAsAction="ifRoom" />
|
||||||
|
|
||||||
<item android:title="@string/action_pause"
|
<item
|
||||||
android:id="@+id/pause_queue"
|
android:id="@+id/pause_queue"
|
||||||
android:icon="@drawable/ic_pause_white_24dp"
|
android:icon="@drawable/ic_pause_white_24dp"
|
||||||
android:visible="false"
|
android:title="@string/action_pause"
|
||||||
app:showAsAction="ifRoom"/>
|
android:visible="false"
|
||||||
|
app:showAsAction="ifRoom" />
|
||||||
|
|
||||||
<item android:title="@string/action_clear"
|
<item
|
||||||
android:id="@+id/clear_queue"
|
android:id="@+id/clear_queue"
|
||||||
android:visible="false"
|
android:title="@string/action_clear"
|
||||||
app:showAsAction="never"/>
|
android:visible="false"
|
||||||
|
app:showAsAction="never" />
|
||||||
|
|
||||||
</menu>
|
</menu>
|
@ -1,35 +1,35 @@
|
|||||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
tools:context=".MainActivity">
|
tools:context=".MainActivity">
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/action_search"
|
android:id="@+id/action_search"
|
||||||
android:icon="@drawable/ic_search_white_24dp"
|
android:icon="@drawable/ic_search_white_24dp"
|
||||||
android:title="@string/action_search"
|
android:title="@string/action_search"
|
||||||
app:actionViewClass="androidx.appcompat.widget.SearchView"
|
app:actionViewClass="androidx.appcompat.widget.SearchView"
|
||||||
app:showAsAction="collapseActionView|ifRoom"/>
|
app:showAsAction="collapseActionView|ifRoom" />
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/action_filter"
|
android:id="@+id/action_filter"
|
||||||
android:icon="@drawable/ic_filter_list_white_24dp"
|
android:icon="@drawable/ic_filter_list_white_24dp"
|
||||||
android:title="@string/action_filter"
|
android:title="@string/action_filter"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/action_update_library"
|
android:id="@+id/action_update_library"
|
||||||
android:icon="@drawable/ic_refresh_white_24dp"
|
android:icon="@drawable/ic_refresh_white_24dp"
|
||||||
android:title="@string/action_update_library"
|
android:title="@string/action_update_library"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/action_edit_categories"
|
android:id="@+id/action_edit_categories"
|
||||||
android:title="@string/action_edit_categories"
|
android:title="@string/action_edit_categories"
|
||||||
app:showAsAction="never"/>
|
app:showAsAction="never" />
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/action_source_migration"
|
android:id="@+id/action_source_migration"
|
||||||
android:title="@string/label_migration"
|
android:title="@string/label_migration"
|
||||||
app:showAsAction="never"/>
|
app:showAsAction="never" />
|
||||||
|
|
||||||
</menu>
|
</menu>
|
||||||
|
@ -1,26 +1,30 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||||
|
|
||||||
<item android:id="@+id/action_edit_cover"
|
<item
|
||||||
android:title="@string/action_edit_cover"
|
android:id="@+id/action_edit_cover"
|
||||||
android:icon="@drawable/ic_create_white_24dp"
|
android:icon="@drawable/ic_create_white_24dp"
|
||||||
app:showAsAction="ifRoom"/>
|
android:title="@string/action_edit_cover"
|
||||||
|
app:showAsAction="ifRoom" />
|
||||||
|
|
||||||
<item android:id="@+id/action_move_to_category"
|
<item
|
||||||
android:title="@string/action_move_category"
|
android:id="@+id/action_move_to_category"
|
||||||
android:icon="@drawable/ic_label_white_24dp"
|
android:icon="@drawable/ic_label_white_24dp"
|
||||||
app:showAsAction="ifRoom"/>
|
android:title="@string/action_move_category"
|
||||||
|
app:showAsAction="ifRoom" />
|
||||||
|
|
||||||
<item android:id="@+id/action_delete"
|
<item
|
||||||
android:title="@string/action_delete"
|
android:id="@+id/action_delete"
|
||||||
android:icon="@drawable/ic_delete_white_24dp"
|
android:icon="@drawable/ic_delete_white_24dp"
|
||||||
app:showAsAction="ifRoom"/>
|
android:title="@string/action_delete"
|
||||||
|
app:showAsAction="ifRoom" />
|
||||||
|
|
||||||
<item android:id="@+id/action_select_all"
|
<item
|
||||||
android:title="@string/action_select_all"
|
android:id="@+id/action_select_all"
|
||||||
android:icon="@drawable/ic_select_all_white_24dp"
|
android:icon="@drawable/ic_select_all_white_24dp"
|
||||||
app:showAsAction="ifRoom"/>
|
android:title="@string/action_select_all"
|
||||||
|
app:showAsAction="ifRoom" />
|
||||||
|
|
||||||
</menu>
|
</menu>
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<group android:id="@+id/group_feature"
|
<group
|
||||||
android:checkableBehavior="single">
|
android:id="@+id/group_feature"
|
||||||
|
android:checkableBehavior="single">
|
||||||
<item
|
<item
|
||||||
android:checked="true"
|
|
||||||
android:id="@+id/nav_drawer_library"
|
android:id="@+id/nav_drawer_library"
|
||||||
|
android:checked="true"
|
||||||
android:icon="@drawable/ic_book_black_24dp"
|
android:icon="@drawable/ic_book_black_24dp"
|
||||||
android:title="@string/label_library" />
|
android:title="@string/label_library" />
|
||||||
<item
|
<item
|
||||||
@ -14,7 +15,7 @@
|
|||||||
<item
|
<item
|
||||||
android:id="@+id/nav_drawer_recently_read"
|
android:id="@+id/nav_drawer_recently_read"
|
||||||
android:icon="@drawable/ic_glasses_black_24dp"
|
android:icon="@drawable/ic_glasses_black_24dp"
|
||||||
android:title="@string/label_recent_manga"/>
|
android:title="@string/label_recent_manga" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/nav_drawer_catalogues"
|
android:id="@+id/nav_drawer_catalogues"
|
||||||
android:icon="@drawable/ic_explore_black_24dp"
|
android:icon="@drawable/ic_explore_black_24dp"
|
||||||
@ -22,24 +23,25 @@
|
|||||||
<item
|
<item
|
||||||
android:id="@+id/nav_drawer_extensions"
|
android:id="@+id/nav_drawer_extensions"
|
||||||
android:icon="@drawable/ic_extension_black_24dp"
|
android:icon="@drawable/ic_extension_black_24dp"
|
||||||
android:title="@string/label_extensions"/>
|
android:title="@string/label_extensions" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/nav_drawer_downloads"
|
android:id="@+id/nav_drawer_downloads"
|
||||||
|
android:checkable="false"
|
||||||
android:icon="@drawable/ic_file_download_black_24dp"
|
android:icon="@drawable/ic_file_download_black_24dp"
|
||||||
android:title="@string/label_download_queue"
|
android:title="@string/label_download_queue" />
|
||||||
android:checkable="false" />
|
|
||||||
</group>
|
</group>
|
||||||
<group android:id="@+id/group_settings"
|
<group
|
||||||
android:checkableBehavior="single">
|
android:id="@+id/group_settings"
|
||||||
|
android:checkableBehavior="single">
|
||||||
<item
|
<item
|
||||||
android:id="@+id/nav_drawer_settings"
|
android:id="@+id/nav_drawer_settings"
|
||||||
|
android:checkable="false"
|
||||||
android:icon="@drawable/ic_settings_black_24dp"
|
android:icon="@drawable/ic_settings_black_24dp"
|
||||||
android:title="@string/label_settings"
|
android:title="@string/label_settings" />
|
||||||
android:checkable="false" />
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/nav_drawer_help"
|
android:id="@+id/nav_drawer_help"
|
||||||
|
android:checkable="false"
|
||||||
android:icon="@drawable/ic_help_black_24dp"
|
android:icon="@drawable/ic_help_black_24dp"
|
||||||
android:title="@string/label_help"
|
android:title="@string/label_help" />
|
||||||
android:checkable="false" />
|
|
||||||
</group>
|
</group>
|
||||||
</menu>
|
</menu>
|
||||||
|
@ -6,6 +6,6 @@
|
|||||||
android:id="@+id/action_change_source"
|
android:id="@+id/action_change_source"
|
||||||
android:icon="@drawable/ic_filter_list_white_24dp"
|
android:icon="@drawable/ic_filter_list_white_24dp"
|
||||||
android:title="@string/action_filter"
|
android:title="@string/action_filter"
|
||||||
app:showAsAction="always"/>
|
app:showAsAction="always" />
|
||||||
|
|
||||||
</menu>
|
</menu>
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/action_custom_filter"
|
android:id="@+id/action_custom_filter"
|
||||||
@ -12,7 +12,6 @@
|
|||||||
android:id="@+id/action_settings"
|
android:id="@+id/action_settings"
|
||||||
android:icon="@drawable/ic_settings_white_24dp"
|
android:icon="@drawable/ic_settings_white_24dp"
|
||||||
android:title="@string/label_settings"
|
android:title="@string/label_settings"
|
||||||
app:showAsAction="ifRoom"
|
app:showAsAction="ifRoom" />
|
||||||
/>
|
|
||||||
|
|
||||||
</menu>
|
</menu>
|
||||||
|
Loading…
Reference in New Issue
Block a user