mirror of
https://github.com/mihonapp/mihon.git
synced 2025-10-29 13:27:57 +01:00
Allow to display manga from catalogue as a simple list (#35)
This commit is contained in:
@@ -11,17 +11,28 @@
|
||||
android:id="@+id/progress"
|
||||
style="?android:attr/progressBarStyleLarge"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center_vertical|center_horizontal"
|
||||
android:visibility="gone"/>
|
||||
|
||||
<eu.kanade.tachiyomi.widget.AutofitRecyclerView
|
||||
android:id="@+id/recycler"
|
||||
style="@style/AppTheme.GridView"
|
||||
<ViewSwitcher
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:columnWidth="140dp"
|
||||
tools:listitem="@layout/item_catalogue" />
|
||||
android:id="@+id/switcher">
|
||||
|
||||
<eu.kanade.tachiyomi.widget.AutofitRecyclerView
|
||||
android:id="@+id/catalogue_grid"
|
||||
style="@style/AppTheme.GridView"
|
||||
android:columnWidth="140dp"
|
||||
tools:listitem="@layout/item_catalogue_grid" />
|
||||
|
||||
<android.support.v7.widget.RecyclerView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:id="@+id/catalogue_list"/>
|
||||
|
||||
</ViewSwitcher>
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/progress_grid"
|
||||
|
||||
@@ -8,6 +8,6 @@
|
||||
android:id="@+id/library_mangas"
|
||||
style="@style/AppTheme.GridView"
|
||||
android:columnWidth="140dp"
|
||||
tools:listitem="@layout/item_catalogue" />
|
||||
tools:listitem="@layout/item_catalogue_grid" />
|
||||
|
||||
</FrameLayout>
|
||||
16
app/src/main/res/layout/item_catalogue_list.xml
Normal file
16
app/src/main/res/layout/item_catalogue_list.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?android:listPreferredItemHeightSmall"
|
||||
android:background="@drawable/selector_chapter_light">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:paddingLeft="?android:listPreferredItemPaddingLeft"
|
||||
android:paddingRight="?android:listPreferredItemPaddingLeft"
|
||||
android:id="@+id/title"/>
|
||||
|
||||
</FrameLayout>
|
||||
Reference in New Issue
Block a user