mirror of
https://github.com/mihonapp/mihon.git
synced 2025-10-29 21:37:56 +01:00
Initial download queue fragment. Update progress working
This commit is contained in:
13
app/src/main/res/layout/fragment_download_queue.xml
Normal file
13
app/src/main/res/layout/fragment_download_queue.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical" android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<android.support.v7.widget.RecyclerView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/download_list">
|
||||
|
||||
</android.support.v7.widget.RecyclerView>
|
||||
|
||||
</LinearLayout>
|
||||
32
app/src/main/res/layout/item_download.xml
Normal file
32
app/src/main/res/layout/item_download.xml
Normal file
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical" android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="15dp"
|
||||
android:layout_marginRight="15dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:id="@+id/download_title"/>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<ProgressBar
|
||||
style="?android:attr/progressBarStyleHorizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/download_progress" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/download_progress_text"
|
||||
android:layout_gravity="center_horizontal" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
</LinearLayout>
|
||||
@@ -4,4 +4,5 @@
|
||||
<item name="nav_drawer_recent_updates" type="id">nav_drawer_recent_updates</item>
|
||||
<item name="nav_drawer_catalogues" type="id">nav_drawer_catalogues</item>
|
||||
<item name="nav_drawer_settings" type="id">nav_drawer_settings</item>
|
||||
<item name="nav_drawer_downloads" type="id">nav_drawer_downloads</item>
|
||||
</resources>
|
||||
@@ -93,5 +93,6 @@
|
||||
<string name="notification_no_new_chapters">No new chapters found</string>
|
||||
<string name="notification_new_chapters">Found new chapters for:</string>
|
||||
<string name="pref_download_threads">Download threads</string>
|
||||
<string name="download_title">Download queue</string>
|
||||
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user