UI fixes
This commit is contained in:
@@ -6,6 +6,7 @@ import android.view.*
|
||||
import androidx.annotation.CallSuper
|
||||
import androidx.appcompat.widget.PopupMenu
|
||||
import androidx.core.view.GravityCompat
|
||||
import androidx.core.view.isGone
|
||||
import androidx.core.view.isVisible
|
||||
import androidx.drawerlayout.widget.DrawerLayout
|
||||
import androidx.recyclerview.widget.DividerItemDecoration
|
||||
@@ -191,7 +192,10 @@ abstract class MangaListFragment<E> : BaseFragment(R.layout.fragment_list), Mang
|
||||
} else {
|
||||
DrawerLayout.LOCK_MODE_UNLOCKED
|
||||
}
|
||||
)
|
||||
) ?: divider_filter?.let {
|
||||
it.isGone = sortOrders.isEmpty() && tags.isEmpty()
|
||||
recyclerView_filter.isVisible = it.isVisible
|
||||
}
|
||||
activity?.invalidateOptionsMenu()
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ class SearchActivity : BaseActivity() {
|
||||
|
||||
supportActionBar?.setDisplayHomeAsUpEnabled(true)
|
||||
title = query
|
||||
supportActionBar?.setSubtitle(R.string.search_results)
|
||||
supportActionBar?.subtitle = getString(R.string.search_results_on_s, source.title)
|
||||
supportFragmentManager
|
||||
.beginTransaction()
|
||||
.replace(R.id.container, SearchFragment.newInstance(source, query))
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:openDrawer="end">
|
||||
android:animateLayoutChanges="true">
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="0dp"
|
||||
@@ -62,6 +62,8 @@
|
||||
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:id="@+id/divider_filter"
|
||||
android:visibility="gone"
|
||||
android:layout_height="match_parent"
|
||||
android:background="?dividerVertical" />
|
||||
|
||||
@@ -70,6 +72,7 @@
|
||||
android:layout_width="240dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="end"
|
||||
android:visibility="gone"
|
||||
android:background="?android:windowBackground"
|
||||
android:orientation="vertical"
|
||||
android:scrollbars="vertical"
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
app:cardBackgroundColor="?android:windowBackground"
|
||||
app:cardElevation="0dp"
|
||||
app:cardMaxElevation="0dp"
|
||||
app:strokeColor="?android:textColorPrimary"
|
||||
app:strokeColor="?android:colorControlNormal"
|
||||
app:strokeWidth="1px">
|
||||
|
||||
<LinearLayout
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
app:cardBackgroundColor="?android:windowBackground"
|
||||
app:cardElevation="0dp"
|
||||
app:cardMaxElevation="0dp"
|
||||
app:strokeColor="?android:textColorPrimary"
|
||||
app:strokeColor="?android:colorControlNormal"
|
||||
app:strokeWidth="1px">
|
||||
|
||||
<RelativeLayout
|
||||
|
||||
@@ -85,4 +85,5 @@
|
||||
<string name="read_mode">Read mode</string>
|
||||
<string name="put_items_below_to_disable_it">Put items below to disable it</string>
|
||||
<string name="grid_size">Grid size</string>
|
||||
<string name="search_results_on_s">Search results on %s</string>
|
||||
</resources>
|
||||
@@ -9,13 +9,13 @@
|
||||
android:entryValues="@array/values_theme"
|
||||
android:key="@string/key_theme"
|
||||
android:title="@string/theme"
|
||||
app:allowDividerBelow="true"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
<Preference
|
||||
android:key="@string/key_list_mode"
|
||||
android:persistent="false"
|
||||
android:title="@string/list_mode"
|
||||
app:allowDividerAbove="true"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
<SeekBarPreference
|
||||
|
||||
Reference in New Issue
Block a user