forked from hardcoresushi/DroidFS
Fix info bar UI bug
This commit is contained in:
parent
e63981c788
commit
4c66251b70
@ -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>
|
@ -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>
|
Loading…
Reference in New Issue
Block a user