474 lines
26 KiB
XML
474 lines
26 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout 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:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:background="@color/default_color_background"
|
|
tools:context=".fragments.MyInfoFragment">
|
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintSwipeRefreshLayout
|
|
android:id="@+id/my_refresh"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintLinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/card_margin"
|
|
android:orientation="vertical"
|
|
android:paddingTop="16dp">
|
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintRelativeLayout
|
|
android:id="@+id/my_info"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?selectableItemBackground"
|
|
android:paddingStart="16dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingEnd="16dp"
|
|
android:paddingBottom="8dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/my_info_avatar"
|
|
android:layout_width="@dimen/size_avatar_large"
|
|
android:layout_height="@dimen/size_avatar_large"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_centerVertical="true"
|
|
android:contentDescription="@string/content_avatar"
|
|
android:scaleType="centerInside"
|
|
tools:srcCompat="@tools:sample/avatars" />
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/my_info_user"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_toEndOf="@id/my_info_avatar">
|
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintTextView
|
|
android:id="@+id/my_info_username"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="22sp"
|
|
android:textStyle="bold"
|
|
app:tint="@color/default_color_text"
|
|
tools:text="Title"
|
|
tools:textColor="@color/default_color_text" />
|
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintTextView
|
|
android:id="@+id/my_info_content"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/my_info_username"
|
|
android:layout_marginTop="4dp"
|
|
android:textSize="14sp"
|
|
app:tint="@color/default_color_text_secondary"
|
|
tools:text="Content"
|
|
tools:textColor="@color/default_color_text_secondary" />
|
|
</RelativeLayout>
|
|
|
|
</com.huanchengfly.tieba.post.widgets.theme.TintRelativeLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:orientation="horizontal">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/bg_ripple"
|
|
android:backgroundTint="@color/transparent"
|
|
android:orientation="vertical"
|
|
android:paddingTop="8dp"
|
|
android:paddingBottom="8dp">
|
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintTextView
|
|
android:id="@+id/my_info_grid_follows"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerHorizontal="true"
|
|
android:textSize="@dimen/stat_text_size"
|
|
android:textStyle="bold"
|
|
app:tint="@color/default_color_text"
|
|
tools:text="999" />
|
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintTextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/my_info_grid_follows"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_marginTop="8dp"
|
|
android:text="@string/title_follow_num"
|
|
android:textSize="14sp"
|
|
app:tint="@color/default_color_text_secondary" />
|
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintView
|
|
android:layout_width="1dp"
|
|
android:layout_height="36dp"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginEnd="-0.5dp"
|
|
android:alpha="0.25"
|
|
app:backgroundTint="@color/default_color_text_disabled" />
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/bg_ripple"
|
|
android:backgroundTint="@color/transparent"
|
|
android:orientation="vertical"
|
|
android:paddingTop="8dp"
|
|
android:paddingBottom="8dp">
|
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintTextView
|
|
android:id="@+id/my_info_grid_fans"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerHorizontal="true"
|
|
android:textSize="@dimen/stat_text_size"
|
|
android:textStyle="bold"
|
|
app:tint="@color/default_color_text"
|
|
tools:text="999" />
|
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintTextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/my_info_grid_fans"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_marginTop="8dp"
|
|
android:text="@string/title_fans_num"
|
|
android:textSize="14sp"
|
|
app:tint="@color/default_color_text_secondary" />
|
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintView
|
|
android:layout_width="1dp"
|
|
android:layout_height="36dp"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginEnd="-0.5dp"
|
|
android:alpha="0.25"
|
|
app:backgroundTint="@color/default_color_text_disabled" />
|
|
</RelativeLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/bg_ripple"
|
|
android:backgroundTint="@color/transparent"
|
|
android:orientation="vertical"
|
|
android:paddingTop="8dp"
|
|
android:paddingBottom="8dp">
|
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintTextView
|
|
android:id="@+id/my_info_grid_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/default_color_text"
|
|
tools:text="999" />
|
|
|
|
<com.huanchengfly.tieba.post.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_posts_num"
|
|
android:textSize="14sp"
|
|
app:tint="@color/default_color_text_secondary" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</com.huanchengfly.tieba.post.widgets.theme.TintLinearLayout>
|
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintLinearLayout
|
|
android:id="@+id/my_info_block_tip"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/card_margin"
|
|
android:layout_marginEnd="@dimen/card_margin"
|
|
android:layout_marginBottom="@dimen/card_margin"
|
|
android:background="@drawable/bg_radius_10dp_ripple"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:padding="16dp"
|
|
android:paddingStart="24dp"
|
|
android:paddingEnd="24dp"
|
|
app:backgroundTint="@color/red">
|
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintImageView
|
|
android:layout_width="16dp"
|
|
android:layout_height="16dp"
|
|
android:layout_marginEnd="16dp"
|
|
app:srcCompat="@drawable/ic_round_warning"
|
|
app:tint="@color/default_color_background" />
|
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintTextView
|
|
android:id="@+id/my_info_block_tip_text"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:textSize="14sp"
|
|
android:textStyle="bold"
|
|
app:tint="@color/default_color_background"
|
|
tools:text="@string/title_account_blocked_forever" />
|
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintImageView
|
|
android:layout_width="16dp"
|
|
android:layout_height="16dp"
|
|
android:layout_marginStart="16dp"
|
|
android:alpha="0.7"
|
|
app:srcCompat="@drawable/ic_round_help_green"
|
|
app:tint="@color/default_color_background" />
|
|
</com.huanchengfly.tieba.post.widgets.theme.TintLinearLayout>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/card_margin"
|
|
android:layout_marginEnd="@dimen/card_margin"
|
|
android:layout_marginBottom="@dimen/card_margin"
|
|
android:orientation="vertical">
|
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintLinearLayout
|
|
android:id="@+id/my_info_collect"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/bg_top_radius_10dp_ripple"
|
|
android:orientation="horizontal"
|
|
android:paddingStart="24dp"
|
|
android:paddingTop="16dp"
|
|
android:paddingEnd="24dp"
|
|
android:paddingBottom="16dp"
|
|
app:backgroundTint="@color/default_color_card">
|
|
|
|
<ImageView
|
|
android:layout_width="28dp"
|
|
android:layout_height="28dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginEnd="16dp"
|
|
android:src="@drawable/ic_round_star_yellow" />
|
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintTextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:text="@string/my_info_collect"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold"
|
|
app:tint="@color/default_color_text" />
|
|
</com.huanchengfly.tieba.post.widgets.theme.TintLinearLayout>
|
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintLinearLayout
|
|
android:id="@+id/my_info_history"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/bg_ripple"
|
|
android:orientation="horizontal"
|
|
android:paddingStart="24dp"
|
|
android:paddingTop="16dp"
|
|
android:paddingEnd="24dp"
|
|
android:paddingBottom="16dp"
|
|
app:backgroundTint="@color/default_color_divider">
|
|
|
|
<ImageView
|
|
android:layout_width="28dp"
|
|
android:layout_height="28dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginEnd="16dp"
|
|
android:src="@drawable/ic_round_watch_later_blue" />
|
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintTextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:text="@string/my_info_history"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold"
|
|
app:tint="@color/default_color_text" />
|
|
</com.huanchengfly.tieba.post.widgets.theme.TintLinearLayout>
|
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintLinearLayout
|
|
android:id="@+id/my_info_theme"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/bg_ripple"
|
|
android:orientation="horizontal"
|
|
android:paddingStart="24dp"
|
|
android:paddingTop="16dp"
|
|
android:paddingEnd="24dp"
|
|
android:paddingBottom="16dp"
|
|
app:backgroundTint="@color/default_color_card">
|
|
|
|
<ImageView
|
|
android:layout_width="28dp"
|
|
android:layout_height="28dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginEnd="16dp"
|
|
android:src="@drawable/ic_round_format_paint_red" />
|
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintTextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:text="@string/my_info_theme"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold"
|
|
app:tint="@color/default_color_text" />
|
|
|
|
<View
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1" />
|
|
|
|
<RelativeLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical|end">
|
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintTextView
|
|
android:id="@+id/my_info_night_tv"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginEnd="8dp"
|
|
android:gravity="center"
|
|
android:text="@string/my_info_night"
|
|
android:textStyle="bold"
|
|
app:tint="@color/default_color_text_secondary" />
|
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintSwitch
|
|
android:id="@+id/my_info_night_switch"
|
|
style="@style/Widget.Switch"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
android:layout_toEndOf="@id/my_info_night_tv"
|
|
android:minHeight="0dp"
|
|
android:thumb="@drawable/switch_ios_thumb"
|
|
app:switchBackgroundTint="@color/transparent"
|
|
app:thumbTint="@color/white"
|
|
app:track="@drawable/switch_ios_track"
|
|
app:trackTintList="@color/selector_switch_track" />
|
|
</RelativeLayout>
|
|
|
|
</com.huanchengfly.tieba.post.widgets.theme.TintLinearLayout>
|
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintLinearLayout
|
|
android:id="@+id/my_info_service_center"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/bg_bottom_radius_10dp_ripple"
|
|
android:orientation="horizontal"
|
|
android:paddingStart="24dp"
|
|
android:paddingTop="16dp"
|
|
android:paddingEnd="24dp"
|
|
android:paddingBottom="16dp"
|
|
app:backgroundTint="@color/default_color_divider">
|
|
|
|
<ImageView
|
|
android:layout_width="28dp"
|
|
android:layout_height="28dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginEnd="16dp"
|
|
android:src="@drawable/ic_round_help_green" />
|
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintTextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:text="@string/my_info_service_center"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold"
|
|
app:tint="@color/default_color_text" />
|
|
</com.huanchengfly.tieba.post.widgets.theme.TintLinearLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/card_margin"
|
|
android:layout_marginEnd="@dimen/card_margin"
|
|
android:layout_marginBottom="@dimen/card_margin"
|
|
android:orientation="vertical">
|
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintLinearLayout
|
|
android:id="@+id/my_info_settings"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/bg_top_radius_10dp_ripple"
|
|
android:orientation="horizontal"
|
|
android:paddingStart="24dp"
|
|
android:paddingTop="16dp"
|
|
android:paddingEnd="24dp"
|
|
android:paddingBottom="16dp"
|
|
app:backgroundTint="@color/default_color_card">
|
|
|
|
<ImageView
|
|
android:layout_width="28dp"
|
|
android:layout_height="28dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginEnd="16dp"
|
|
android:src="@drawable/ic_round_settings_grey" />
|
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintTextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:text="@string/my_info_settings"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold"
|
|
app:tint="@color/default_color_text" />
|
|
</com.huanchengfly.tieba.post.widgets.theme.TintLinearLayout>
|
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintLinearLayout
|
|
android:id="@+id/my_info_about"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/bg_bottom_radius_10dp_ripple"
|
|
android:orientation="horizontal"
|
|
android:paddingStart="24dp"
|
|
android:paddingTop="16dp"
|
|
android:paddingEnd="24dp"
|
|
android:paddingBottom="16dp"
|
|
app:backgroundTint="@color/default_color_divider">
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:layout_width="28dp"
|
|
android:layout_height="28dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginEnd="16dp"
|
|
app:srcCompat="@drawable/ic_round_info"
|
|
app:tint="#3CA7F1" />
|
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintTextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:text="@string/my_info_about"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold"
|
|
app:tint="@color/default_color_text" />
|
|
</com.huanchengfly.tieba.post.widgets.theme.TintLinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</androidx.core.widget.NestedScrollView>
|
|
</com.huanchengfly.tieba.post.widgets.theme.TintSwipeRefreshLayout>
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout> |