249 lines
11 KiB
XML
249 lines
11 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/forum_header"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="?attr/actionBarSize"
|
|
android:orientation="vertical">
|
|
|
|
<View
|
|
android:id="@+id/fake_status_bar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone" />
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/forum_info_parent"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="16dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/forum_header_avatar"
|
|
android:layout_width="@dimen/size_avatar_large"
|
|
android:layout_height="@dimen/size_avatar_large"
|
|
android:layout_centerVertical="true"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<com.huanchengfly.tieba.post.ui.widgets.theme.TintTextView
|
|
android:id="@+id/forum_header_name"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:ellipsize="end"
|
|
android:gravity="top"
|
|
android:maxLines="1"
|
|
android:textSize="20sp"
|
|
android:textStyle="bold"
|
|
app:layout_constraintEnd_toStartOf="@+id/forum_header_button"
|
|
app:layout_constraintHorizontal_bias="0.0"
|
|
app:layout_constraintStart_toEndOf="@+id/forum_header_avatar"
|
|
app:layout_constraintTop_toTopOf="@+id/forum_header_avatar"
|
|
app:tint="@color/color_text_translucent_light"
|
|
tools:text="minecraft吧" />
|
|
|
|
<com.huanchengfly.tieba.post.ui.widgets.theme.TintProgressBar
|
|
android:id="@+id/forum_header_progress"
|
|
style="@android:style/Widget.DeviceDefault.Light.ProgressBar.Horizontal"
|
|
android:layout_width="0dp"
|
|
android:layout_height="6dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:indeterminate="false"
|
|
android:minWidth="120dp"
|
|
android:minHeight="0dp"
|
|
android:progressDrawable="@drawable/drawable_forum_header_progress"
|
|
app:layout_constraintBottom_toTopOf="@+id/forum_header_tip"
|
|
app:layout_constraintEnd_toStartOf="@+id/forum_header_button"
|
|
app:layout_constraintStart_toStartOf="@+id/forum_header_name"
|
|
app:layout_constraintTop_toBottomOf="@+id/forum_header_name"
|
|
app:progressBackgroundTint="@color/color_text_disabled_translucent_light"
|
|
app:progressTint="@color/color_text_translucent_light"
|
|
tools:max="100"
|
|
tools:progress="50" />
|
|
|
|
<com.huanchengfly.tieba.post.ui.widgets.theme.TintTextView
|
|
android:id="@+id/forum_header_tip"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/forum_header_progress"
|
|
android:ellipsize="end"
|
|
android:maxLines="1"
|
|
android:textSize="13sp"
|
|
app:layout_constraintBottom_toBottomOf="@+id/forum_header_avatar"
|
|
app:layout_constraintStart_toStartOf="@+id/forum_header_name"
|
|
app:tint="@color/color_text_secondary_translucent_light"
|
|
tools:text="LV9 大水逼" />
|
|
|
|
<com.huanchengfly.tieba.post.ui.widgets.theme.TintMaterialButton
|
|
android:id="@+id/forum_header_button"
|
|
style="@style/Widget.Button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="8dp"
|
|
android:enabled="true"
|
|
android:minWidth="72dp"
|
|
android:textStyle="bold"
|
|
app:buttonBackgroundTint="@color/selector_forum_header_button_color"
|
|
app:buttonTextColor="@color/selector_forum_header_button_text_color"
|
|
app:cornerRadius="8dp"
|
|
app:layout_constraintBottom_toBottomOf="@+id/forum_header_progress"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="@+id/forum_header_progress" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/forum_header_slogan_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="-16dp"
|
|
android:paddingStart="16dp"
|
|
android:paddingEnd="16dp"
|
|
android:paddingBottom="12dp"
|
|
app:layout_constraintBottom_toBottomOf="@+id/tintImageView"
|
|
app:layout_constraintTop_toBottomOf="@+id/tintImageView">
|
|
|
|
<com.huanchengfly.tieba.post.ui.widgets.theme.TintTextView
|
|
android:id="@+id/forum_header_slogan"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="28dp"
|
|
android:background="@drawable/bg_radius_8dp"
|
|
android:gravity="center"
|
|
android:padding="24dp"
|
|
android:textColor="#D8FFFFFF"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold"
|
|
app:backgroundTint="@color/theme_color_card_translucent_dark"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<com.huanchengfly.tieba.post.ui.widgets.theme.TintImageView
|
|
android:id="@+id/tintImageView"
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:layout_marginStart="8dp"
|
|
android:rotation="180"
|
|
app:layout_constraintStart_toStartOf="@+id/forum_header_slogan"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:srcCompat="@drawable/ic_format_quote"
|
|
app:tint="@color/color_text_disabled_translucent_light"
|
|
tools:tint="@color/color_text_disabled_translucent_light" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/forum_header_stat_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:layout_marginBottom="24dp"
|
|
android:background="@drawable/bg_radius_8dp"
|
|
android:backgroundTint="@color/theme_color_card_translucent_dark"
|
|
android:orientation="vertical"
|
|
android:paddingTop="16dp"
|
|
android:paddingBottom="8dp">
|
|
|
|
<TextView
|
|
android:id="@+id/forum_header_stat_title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:text="@string/title_forum_stat"
|
|
android:textColor="@color/color_text_translucent_light"
|
|
android:textStyle="bold" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:baselineAligned="false"
|
|
android:orientation="horizontal">
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<com.huanchengfly.tieba.post.ui.widgets.theme.TintTextView
|
|
android:id="@+id/forum_header_stat_members"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:textSize="@dimen/stat_text_size"
|
|
android:textStyle="bold"
|
|
app:tint="@color/color_text_translucent_light"
|
|
tools:text="241W" />
|
|
|
|
<com.huanchengfly.tieba.post.ui.widgets.theme.TintTextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginTop="8dp"
|
|
android:text="@string/title_stat_concerns_num"
|
|
android:textSize="14sp"
|
|
app:tint="@color/color_text_secondary_translucent_light" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<com.huanchengfly.tieba.post.ui.widgets.theme.TintTextView
|
|
android:id="@+id/forum_header_stat_threads"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:textSize="@dimen/stat_text_size"
|
|
android:textStyle="bold"
|
|
app:tint="@color/color_text_translucent_light"
|
|
tools:text="55W" />
|
|
|
|
<com.huanchengfly.tieba.post.ui.widgets.theme.TintTextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginTop="8dp"
|
|
android:text="@string/title_stat_threads_num"
|
|
android:textSize="14sp"
|
|
app:tint="@color/color_text_secondary_translucent_light" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<com.huanchengfly.tieba.post.ui.widgets.theme.TintTextView
|
|
android:id="@+id/forum_header_stat_posts"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:textSize="@dimen/stat_text_size"
|
|
android:textStyle="bold"
|
|
app:tint="@color/color_text_translucent_light"
|
|
tools:text="3KW" />
|
|
|
|
<com.huanchengfly.tieba.post.ui.widgets.theme.TintTextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginTop="8dp"
|
|
android:text="@string/title_stat_posts_num"
|
|
android:textSize="14sp"
|
|
app:tint="@color/color_text_secondary_translucent_light" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout> |