pro版本添加自定义启动画面

pull/1693/head
kunfei 3 years ago
parent 1a81fa646a
commit ac677fdb28
  1. 24
      app/src/main/res/layout/activity_welcome.xml

@ -7,6 +7,16 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:gravity="center_horizontal"> android:gravity="center_horizontal">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/tv_legado"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintVertical_bias="0.4"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toTopOf="@+id/iv_book">
<View <View
android:id="@+id/vw_title_line" android:id="@+id/vw_title_line"
android:layout_width="6dp" android:layout_width="6dp"
@ -14,34 +24,36 @@
android:background="@color/accent" android:background="@color/accent"
app:layout_constraintTop_toTopOf="@+id/tv_title" app:layout_constraintTop_toTopOf="@+id/tv_title"
app:layout_constraintBottom_toBottomOf="@+id/tv_title" app:layout_constraintBottom_toBottomOf="@+id/tv_title"
app:layout_constraintLeft_toLeftOf="@id/iv_book" /> app:layout_constraintLeft_toLeftOf="parent" />
<io.legado.app.ui.widget.text.AccentTextView <io.legado.app.ui.widget.text.AccentTextView
android:id="@+id/tv_title" android:id="@+id/tv_title"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="6dp"
android:ems="1" android:ems="1"
android:text="阅读" android:text="阅读"
android:textSize="49sp" android:textSize="49sp"
app:layout_constraintVertical_bias="0.3"
app:layout_constraintRight_toLeftOf="@+id/tv_sub_title" app:layout_constraintRight_toLeftOf="@+id/tv_sub_title"
app:layout_constraintLeft_toRightOf="@+id/vw_title_line" app:layout_constraintLeft_toRightOf="@+id/vw_title_line"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toTopOf="@+id/iv_book" tools:ignore="HardcodedText,RtlHardcoded" />
tools:ignore="HardcodedText" />
<io.legado.app.ui.widget.text.AccentTextView <io.legado.app.ui.widget.text.AccentTextView
android:id="@+id/tv_sub_title" android:id="@+id/tv_sub_title"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="60dp" android:layout_marginTop="60dp"
android:layout_marginLeft="6dp"
android:ems="1" android:ems="1"
android:text="享受美好时光" android:text="享受美好时光"
android:textSize="16sp" android:textSize="16sp"
app:layout_constraintTop_toTopOf="@+id/tv_title" app:layout_constraintTop_toTopOf="@+id/tv_title"
app:layout_constraintLeft_toRightOf="@id/tv_title" app:layout_constraintLeft_toRightOf="@id/tv_title"
app:layout_constraintRight_toRightOf="@id/iv_book" tools:ignore="HardcodedText,RtlHardcoded" />
tools:ignore="HardcodedText" />
</androidx.constraintlayout.widget.ConstraintLayout>
<ImageView <ImageView
android:id="@+id/iv_book" android:id="@+id/iv_book"

Loading…
Cancel
Save