mirror of
https://github.com/nextcloud/android.git
synced 2024-12-21 00:12:05 +03:00
fix ui
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
e0f096b8d8
commit
7ad9657c4f
3 changed files with 5 additions and 4 deletions
|
@ -47,7 +47,8 @@ class RecommendedFilesAdapter(
|
||||||
|
|
||||||
holder.binding.run {
|
holder.binding.run {
|
||||||
name.text = item.name
|
name.text = item.name
|
||||||
timestamp.text = DisplayUtils.getRelativeTimestamp(context, item.timestamp)
|
val secondsInMillisecond = (item.timestamp * 1000)
|
||||||
|
timestamp.text = DisplayUtils.getRelativeTimestamp(context, secondsInMillisecond)
|
||||||
|
|
||||||
val file = storageManager.getFileByLocalId(item.id) ?: return
|
val file = storageManager.getFileByLocalId(item.id) ?: return
|
||||||
|
|
||||||
|
|
|
@ -43,10 +43,8 @@
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/recommended_files_title"
|
android:id="@+id/recommended_files_title"
|
||||||
android:text="@string/recommended_files_title"
|
android:text="@string/recommended_files_title"
|
||||||
app:drawableStartCompat="@drawable/ic_star"
|
android:textSize="@dimen/large_title_text_size"
|
||||||
app:drawableTint="@color/text_color"
|
|
||||||
android:gravity="center|start"
|
android:gravity="center|start"
|
||||||
android:drawablePadding="@dimen/standard_half_padding"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:paddingLeft="@dimen/standard_padding"
|
android:paddingLeft="@dimen/standard_padding"
|
||||||
|
|
|
@ -161,4 +161,6 @@
|
||||||
<dimen name="recommended_files_thumbnail_height">120dp</dimen>
|
<dimen name="recommended_files_thumbnail_height">120dp</dimen>
|
||||||
<dimen name="recommended_files_layout_width">180dp</dimen>
|
<dimen name="recommended_files_layout_width">180dp</dimen>
|
||||||
<dimen name="recommended_files_layout_margin_top">150dp</dimen>
|
<dimen name="recommended_files_layout_margin_top">150dp</dimen>
|
||||||
|
|
||||||
|
<dimen name="large_title_text_size">22sp</dimen>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
Loading…
Reference in a new issue