Increment: Improve file list display

This commit is contained in:
Aditya-Sood 2019-06-26 21:11:49 +05:30
parent af5a4e1c65
commit 98184e82cd
2 changed files with 21 additions and 6 deletions

View File

@ -6,6 +6,19 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
tools:context=".zim_manager.local_file_transfer.TransferProgressFragment">
<View
android:id="@+id/view_file_list_boundary"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@android:color/darker_gray"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintBottom_toTopOf="@+id/text_view_files_for_transfer"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:layout_marginTop="10dp" />
<!-- TODO: Update blank fragment layout -->
<TextView
android:id="@+id/text_view_files_for_transfer"
@ -15,7 +28,8 @@
android:textSize="16sp"
android:fontFamily="monospace"
android:gravity="center"
app:layout_constraintTop_toTopOf="parent"
android:paddingTop="10dp"
app:layout_constraintTop_toBottomOf="@id/view_file_list_boundary"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintBottom_toTopOf="@id/recycler_view_transfer_files"/>

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
@ -12,7 +13,7 @@
android:text="File Name"
android:gravity="center_vertical"
android:textColor="#000000"
android:textSize="16sp"
android:textSize="14sp"
android:paddingTop="1dp"
android:paddingBottom="1dp"
android:paddingLeft="5dp"
@ -28,8 +29,8 @@
android:layout_height="0dp"
android:paddingTop="1dp"
android:paddingBottom="1dp"
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:paddingEnd="5dp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintLeft_toRightOf="@id/text_view_file_item_name"
app:layout_constraintRight_toRightOf="parent"
@ -41,10 +42,10 @@
android:id="@+id/image_view_file_transferred"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:paddingLeft="5dp"
android:paddingTop="1dp"
android:paddingRight="5dp"
android:paddingBottom="1dp"
android:paddingRight="5dp"
android:paddingEnd="5dp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintLeft_toRightOf="@id/text_view_file_item_name"
app:layout_constraintRight_toRightOf="parent"