TiebaLite/app/src/main/res/layout/activity_new_search.xml

98 lines
4.6 KiB
XML
Raw Normal View History

2020-08-31 23:21:31 +08:00
<?xml version="1.0" encoding="utf-8"?>
2020-09-19 21:38:41 +08:00
<com.huanchengfly.tieba.post.widgets.theme.TintCoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
2020-08-31 23:21:31 +08:00
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
2020-09-19 21:38:41 +08:00
xmlns:tools="http://schemas.android.com/tools"
app:backgroundTint="@color/default_color_window_background"
tools:context=".activities.NewSearchActivity">
2020-08-31 23:21:31 +08:00
<com.huanchengfly.tieba.post.widgets.theme.TintAppBarLayout
android:id="@+id/appbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:stateListAnimator="@animator/appbar_elevation"
app:backgroundTint="@color/default_color_toolbar">
2020-09-19 21:38:41 +08:00
2020-08-31 23:21:31 +08:00
<com.huanchengfly.tieba.post.widgets.theme.TintTextInputLayout
android:id="@+id/search_bar"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense"
android:layout_height="wrap_content"
android:layout_width="match_parent"
2020-09-19 21:38:41 +08:00
app:boxBackgroundColor="@color/color_toolbar_bar"
2020-08-31 23:21:31 +08:00
app:boxCollapsedPaddingTop="0dp"
app:boxCornerRadiusBottomEnd="8dp"
app:boxCornerRadiusBottomStart="8dp"
app:boxCornerRadiusTopEnd="8dp"
app:boxCornerRadiusTopStart="8dp"
app:boxStrokeWidth="0dp"
app:boxStrokeWidthFocused="0dp"
app:hintEnabled="false"
android:layout_marginTop="12dp"
android:layout_marginBottom="12dp"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
2020-11-06 19:45:21 +08:00
app:startIconTint="@color/color_on_toolbar_bar"
app:hintTextColor="@color/color_on_toolbar_bar"
app:placeholderTextColor="@color/color_on_toolbar_bar"
2020-08-31 23:21:31 +08:00
app:startIconDrawable="@drawable/ic_round_arrow_back">
<com.huanchengfly.tieba.post.widgets.theme.TintTextInputEditText
android:imeOptions="actionSearch"
android:inputType="text"
android:id="@+id/search_edit_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
android:hint="@string/hint_search"
2020-11-06 19:45:21 +08:00
android:textStyle="bold"
android:textColorHint="@color/color_on_toolbar_bar" />
2020-08-31 23:21:31 +08:00
</com.huanchengfly.tieba.post.widgets.theme.TintTextInputLayout>
</com.huanchengfly.tieba.post.widgets.theme.TintAppBarLayout>
<com.huanchengfly.tieba.post.widgets.theme.TintFrameLayout
android:layout_gravity="bottom"
android:id="@+id/bottom_app_bar"
app:backgroundTint="@color/default_color_toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.huanchengfly.tieba.post.widgets.theme.TintFrameLayout
android:id="@+id/tab_layout_holder"
android:layout_marginTop="12dp"
android:layout_marginBottom="12dp"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:background="@drawable/bg_radius_8dp"
2020-09-19 21:38:41 +08:00
app:backgroundTint="@color/color_toolbar_bar"
2020-08-31 23:21:31 +08:00
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.huanchengfly.tieba.post.widgets.theme.TintTabLayout
2020-10-05 20:12:28 +08:00
android:layout_marginStart="5dp"
android:layout_marginEnd="5dp"
2020-08-31 23:21:31 +08:00
android:background="@color/transparent"
style="@style/Widget.TabLayout.Toolbar.Fixed"
android:id="@+id/tab_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</com.huanchengfly.tieba.post.widgets.theme.TintFrameLayout>
</com.huanchengfly.tieba.post.widgets.theme.TintFrameLayout>
<androidx.recyclerview.widget.RecyclerView
app:layout_behavior="@string/appbar_scrolling_view_behavior"
2020-09-19 21:38:41 +08:00
android:paddingStart="@dimen/card_margin"
android:paddingEnd="@dimen/card_margin"
android:paddingBottom="@dimen/card_margin"
2020-08-31 23:21:31 +08:00
android:clipToPadding="false"
android:id="@+id/recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<com.huanchengfly.tieba.post.widgets.MyViewPager
android:id="@+id/view_pager"
android:layout_marginBottom="72dp"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</com.huanchengfly.tieba.post.widgets.theme.TintCoordinatorLayout>