顶栏与底栏问题 #221、#220
This commit is contained in:
@@ -178,10 +178,10 @@ class PageView(context: Context) : FrameLayout(context) {
|
|||||||
}
|
}
|
||||||
ReadTipConfig.apply {
|
ReadTipConfig.apply {
|
||||||
tvHeaderLeft.isGone = tipHeaderLeft == none
|
tvHeaderLeft.isGone = tipHeaderLeft == none
|
||||||
tvHeaderRight.isGone = tipHeaderRight == none
|
tvHeaderRight.isInvisible = tipHeaderRight == none
|
||||||
tvHeaderMiddle.isGone = tipHeaderMiddle == none
|
tvHeaderMiddle.isGone = tipHeaderMiddle == none
|
||||||
tvFooterLeft.isInvisible = tipFooterLeft == none
|
tvFooterLeft.isGone = tipFooterLeft == none
|
||||||
tvFooterRight.isGone = tipFooterRight == none
|
tvFooterRight.isInvisible = tipFooterRight == none
|
||||||
tvFooterMiddle.isGone = tipFooterMiddle == none
|
tvFooterMiddle.isGone = tipFooterMiddle == none
|
||||||
}
|
}
|
||||||
tvTitle = getTipView(ReadTipConfig.chapterTitle)?.apply {
|
tvTitle = getTipView(ReadTipConfig.chapterTitle)?.apply {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?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"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||||
|
|
||||||
@@ -21,61 +21,54 @@
|
|||||||
android:id="@+id/battery_text"
|
android:id="@+id/battery_text"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:gravity="center_vertical"
|
android:includeFontPadding="false"
|
||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:includeFontPadding="false"
|
|
||||||
android:textSize="11sp"
|
android:textSize="11sp"
|
||||||
android:text="@string/text"
|
android:text="@string/text"
|
||||||
android:textStyle="bold" />
|
android:textStyle="bold"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/arrow_icon"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"/>
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<TextView
|
||||||
|
android:id="@+id/battery_text_inner"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_gravity="center_vertical">
|
android:layout_marginEnd="2.4dp"
|
||||||
|
android:layout_marginBottom="0.8dp"
|
||||||
|
android:textSize="8sp"
|
||||||
|
android:text="@string/text"
|
||||||
|
android:textStyle="bold"
|
||||||
|
app:layout_constraintStart_toStartOf="@id/battery_icon"
|
||||||
|
app:layout_constraintEnd_toEndOf="@id/battery_icon"
|
||||||
|
app:layout_constraintTop_toTopOf="@id/battery_icon"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@id/battery_icon"
|
||||||
|
tools:ignore="SmallSp" />
|
||||||
|
|
||||||
<TextView
|
<ImageView
|
||||||
android:id="@+id/battery_text_inner"
|
android:id="@+id/battery_icon"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="28dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="12dp"
|
||||||
android:layout_marginEnd="2.4dp"
|
android:layout_marginStart="4dp"
|
||||||
android:layout_marginBottom="0.8dp"
|
android:scaleType="centerCrop"
|
||||||
android:textSize="8sp"
|
android:src="@drawable/ic_battery"
|
||||||
android:text="@string/text"
|
app:layout_constraintStart_toEndOf="@id/battery_text"
|
||||||
android:textStyle="bold"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
tools:ignore="SmallSp"
|
app:layout_constraintBottom_toBottomOf="parent"/>
|
||||||
app:layout_constraintStart_toStartOf="@id/battery_icon"
|
|
||||||
app:layout_constraintEnd_toEndOf="@id/battery_icon"
|
|
||||||
app:layout_constraintTop_toTopOf="@id/battery_icon"
|
|
||||||
app:layout_constraintBottom_toBottomOf="@id/battery_icon"/>
|
|
||||||
|
|
||||||
<ImageView
|
<com.google.android.material.card.MaterialCardView
|
||||||
android:id="@+id/battery_icon"
|
android:id="@+id/battery_fill"
|
||||||
android:layout_width="28dp"
|
android:layout_width="17dp"
|
||||||
android:layout_height="12dp"
|
android:layout_height="8dp"
|
||||||
android:layout_marginStart="4dp"
|
android:visibility="gone"
|
||||||
android:scaleType="centerCrop"
|
android:layout_marginStart="4.2dp"
|
||||||
android:src="@drawable/ic_battery"
|
app:strokeWidth="0dp"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:cardCornerRadius="1dp"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:cardBackgroundColor="?attr/colorControlNormal"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintStart_toStartOf="@id/battery_icon"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"/>
|
app:layout_constraintTop_toTopOf="@id/battery_icon"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@id/battery_icon"/>
|
||||||
<com.google.android.material.card.MaterialCardView
|
|
||||||
android:id="@+id/battery_fill"
|
|
||||||
android:layout_width="17dp"
|
|
||||||
android:layout_height="8dp"
|
|
||||||
android:visibility="visible"
|
|
||||||
android:layout_marginStart="1.2dp"
|
|
||||||
app:strokeWidth="0dp"
|
|
||||||
app:cardCornerRadius="1dp"
|
|
||||||
app:cardBackgroundColor="?attr/colorControlNormal"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintEnd_toEndOf="@id/battery_icon"
|
|
||||||
app:layout_constraintTop_toTopOf="@id/battery_icon"
|
|
||||||
app:layout_constraintBottom_toBottomOf="@id/battery_icon"/>
|
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/battery_text_end"
|
android:id="@+id/battery_text_end"
|
||||||
@@ -85,13 +78,19 @@
|
|||||||
android:includeFontPadding="false"
|
android:includeFontPadding="false"
|
||||||
android:textSize="11sp"
|
android:textSize="11sp"
|
||||||
android:text="@string/text"
|
android:text="@string/text"
|
||||||
android:textStyle="bold" />
|
android:textStyle="bold"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/battery_icon"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"/>
|
||||||
|
|
||||||
<io.legado.app.ui.widget.BatteryViewOrgin
|
<io.legado.app.ui.widget.BatteryViewOrgin
|
||||||
android:id="@+id/battery_classic"
|
android:id="@+id/battery_classic"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/text"
|
android:text="@string/text"
|
||||||
android:visibility="visible" />
|
android:visibility="visible"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/battery_icon"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"/>
|
||||||
|
|
||||||
</LinearLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
VERSION_MAJOR=3
|
VERSION_MAJOR=3
|
||||||
VERSION_MINOR=26
|
VERSION_MINOR=26
|
||||||
VERSION_PATCH=2
|
VERSION_PATCH=2
|
||||||
VERSION_SUFFIX=-beta.7
|
VERSION_SUFFIX=-beta.8
|
||||||
Reference in New Issue
Block a user