layout improvements

This commit is contained in:
Bnyro 2022-10-10 17:03:03 +02:00
parent 500e56e760
commit bf2db3ce48
2 changed files with 12 additions and 8 deletions

View File

@ -2,7 +2,6 @@ package com.github.libretube.ui.adapters
import android.annotation.SuppressLint import android.annotation.SuppressLint
import android.content.Intent import android.content.Intent
import android.text.format.DateUtils
import android.view.LayoutInflater import android.view.LayoutInflater
import android.view.ViewGroup import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView import androidx.recyclerview.widget.RecyclerView
@ -38,7 +37,7 @@ class DownloadsAdapter(
file.metadata?.let { file.metadata?.let {
uploaderName.text = it.uploader uploaderName.text = it.uploader
it.views.formatShort() + " " + videoInfo.text = it.views.formatShort() + " " +
root.context.getString(R.string.views_placeholder) + root.context.getString(R.string.views_placeholder) +
"" + it.uploadDate "" + it.uploadDate
} }

View File

@ -9,26 +9,30 @@
<LinearLayout <LinearLayout
android:layout_width="0dp" android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical"> android:layout_weight="1"
android:orientation="vertical"
android:layout_marginEnd="10dp">
<TextView <TextView
android:id="@+id/fileName" android:id="@+id/fileName"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textSize="12sp" /> android:layout_marginVertical="2dp"
android:textSize="16sp" />
<TextView <TextView
android:id="@+id/uploaderName" android:id="@+id/uploaderName"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginVertical="2dp"
android:textSize="12sp" /> android:textSize="12sp" />
<TextView <TextView
android:id="@+id/videoInfo" android:id="@+id/videoInfo"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginVertical="2dp"
android:textSize="12sp" /> android:textSize="12sp" />
</LinearLayout> </LinearLayout>
@ -36,6 +40,7 @@
<TextView <TextView
android:id="@+id/fileSize" android:id="@+id/fileSize"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" /> android:layout_height="wrap_content"
android:layout_gravity="center" />
</LinearLayout> </LinearLayout>