Fix info bar UI bug

This commit is contained in:
Matéo Duparc 2021-03-09 19:10:15 +01:00
parent e63981c788
commit 4c66251b70
Signed by: hardcoresushi
GPG Key ID: 007F84120107191E
2 changed files with 20 additions and 15 deletions

View File

@ -1,29 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
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="25dp"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="@color/infoBarBackgroundColor"
android:gravity="center_vertical">
<TextView
android:id="@+id/current_path_text"
android:layout_width="20dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:ellipsize="start"
android:singleLine="true"
android:layout_weight="1"
android:layout_marginStart="50dp"
android:textSize="15sp"/>
style="@style/infoBarTextView"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toStartOf="@id/total_size_text"/>
<TextView
android:id="@+id/total_size_text"
android:layout_width="20dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textAlignment="viewEnd"
android:layout_marginEnd="50dp"
android:textSize="15sp"
android:text="@string/default_total_size"/>
style="@style/infoBarTextView"
android:text="@string/default_total_size"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/current_path_text"/>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -14,4 +14,10 @@
<!--<style name="menu_overflow" parent="Widget.AppCompat.PopupMenu.Overflow">
<item name="android:popupBackground">@drawable/popupmenu_overflow</item>
</style>-->
<style name="infoBarTextView">
<item name="android:ellipsize">start</item>
<item name="android:singleLine">true</item>
<item name="android:textSize">15sp</item>
<item name="android:textAlignment">center</item>
</style>
</resources>