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