|
@@ -1,7 +1,6 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
- xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
|
android:id="@+id/vw_root"
|
|
android:id="@+id/vw_root"
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
android:layout_height="match_parent"
|
|
@@ -24,40 +23,37 @@
|
|
|
android:id="@+id/tv_header_left"
|
|
android:id="@+id/tv_header_left"
|
|
|
android:layout_width="0dp"
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
- android:ellipsize="end"
|
|
|
|
|
- android:singleLine="true"
|
|
|
|
|
- android:textSize="12sp"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
app:layout_constraintHorizontal_weight="1"
|
|
app:layout_constraintHorizontal_weight="1"
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
|
- app:layout_constraintRight_toLeftOf="@+id/tv_header_right"
|
|
|
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
+ app:layout_constraintEnd_toStartOf="@+id/barrier"
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
<io.legado.app.ui.widget.BatteryView
|
|
<io.legado.app.ui.widget.BatteryView
|
|
|
android:id="@+id/tv_header_middle"
|
|
android:id="@+id/tv_header_middle"
|
|
|
android:layout_width="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
- android:ellipsize="end"
|
|
|
|
|
- android:singleLine="true"
|
|
|
|
|
- android:textSize="12sp"
|
|
|
|
|
android:visibility="gone"
|
|
android:visibility="gone"
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
<io.legado.app.ui.widget.BatteryView
|
|
<io.legado.app.ui.widget.BatteryView
|
|
|
android:id="@+id/tv_header_right"
|
|
android:id="@+id/tv_header_right"
|
|
|
android:layout_width="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginLeft="3dp"
|
|
|
|
|
- android:ellipsize="end"
|
|
|
|
|
- android:singleLine="true"
|
|
|
|
|
- android:textSize="12sp"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
|
|
- app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
- tools:ignore="RtlHardcoded,RtlSymmetry" />
|
|
|
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
+
|
|
|
|
|
+ <androidx.constraintlayout.widget.Barrier
|
|
|
|
|
+ android:id="@+id/barrier"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ app:barrierDirection="start"
|
|
|
|
|
+ app:barrierAllowsGoneWidgets="false"
|
|
|
|
|
+ app:constraint_referenced_ids="tv_header_middle,tv_header_right" />
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
@@ -96,40 +92,37 @@
|
|
|
android:id="@+id/tv_footer_left"
|
|
android:id="@+id/tv_footer_left"
|
|
|
android:layout_width="0dp"
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
- android:ellipsize="end"
|
|
|
|
|
- android:singleLine="true"
|
|
|
|
|
- android:textSize="12sp"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
app:layout_constraintHorizontal_weight="1"
|
|
app:layout_constraintHorizontal_weight="1"
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
|
- app:layout_constraintRight_toLeftOf="@+id/tv_footer_right"
|
|
|
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
+ app:layout_constraintEnd_toStartOf="@+id/barrier_footer"
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
<io.legado.app.ui.widget.BatteryView
|
|
<io.legado.app.ui.widget.BatteryView
|
|
|
android:id="@+id/tv_footer_middle"
|
|
android:id="@+id/tv_footer_middle"
|
|
|
android:layout_width="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
- android:ellipsize="end"
|
|
|
|
|
- android:singleLine="true"
|
|
|
|
|
- android:textSize="12sp"
|
|
|
|
|
android:visibility="gone"
|
|
android:visibility="gone"
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
<io.legado.app.ui.widget.BatteryView
|
|
<io.legado.app.ui.widget.BatteryView
|
|
|
android:id="@+id/tv_footer_right"
|
|
android:id="@+id/tv_footer_right"
|
|
|
android:layout_width="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginLeft="3dp"
|
|
|
|
|
- android:ellipsize="end"
|
|
|
|
|
- android:singleLine="true"
|
|
|
|
|
- android:textSize="12sp"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
|
|
- app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
- tools:ignore="RtlHardcoded,RtlSymmetry,SmallSp" />
|
|
|
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
+
|
|
|
|
|
+ <androidx.constraintlayout.widget.Barrier
|
|
|
|
|
+ android:id="@+id/barrier_footer"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ app:barrierDirection="start"
|
|
|
|
|
+ app:barrierAllowsGoneWidgets="false"
|
|
|
|
|
+ app:constraint_referenced_ids="tv_footer_middle,tv_footer_right" />
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|