2020-04-05 13:15:03 +08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-08-15 22:05:07 +08:00
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintRelativeLayout
|
2020-04-05 13:15:03 +08:00
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2020-08-22 22:22:06 +08:00
|
|
|
app:backgroundTint="@color/default_color_window_background"
|
2020-04-05 13:15:03 +08:00
|
|
|
android:id="@+id/background"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
2020-08-15 22:05:07 +08:00
|
|
|
tools:context=".activities.MainActivity">
|
2020-04-05 13:15:03 +08:00
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
|
android:id="@+id/appbar"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content">
|
2020-08-15 22:05:07 +08:00
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintToolbar
|
2020-04-05 13:15:03 +08:00
|
|
|
app:popupTheme="?attr/actionOverflowMenuStyle"
|
|
|
|
|
app:navigationIcon="@null"
|
|
|
|
|
app:toolbarBackgroundTint="@color/default_color_toolbar"
|
|
|
|
|
app:itemTint="@color/default_color_toolbar_item"
|
|
|
|
|
app:secondaryItemTint="@color/default_color_toolbar_item_secondary"
|
|
|
|
|
app:activeItemTint="@color/default_color_toolbar_item_active"
|
|
|
|
|
android:id="@+id/toolbar"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="?attr/actionBarSize"
|
|
|
|
|
app:title="@string/title_main"
|
|
|
|
|
app:titleTextAppearance="@style/Toolbar.Title"
|
|
|
|
|
app:subtitleTextAppearance="@style/Toolbar.Subtitle" />
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
2020-08-22 22:22:06 +08:00
|
|
|
<com.huanchengfly.tieba.post.widgets.MyViewPager
|
2020-04-05 13:15:03 +08:00
|
|
|
android:layout_above="@id/navbar"
|
|
|
|
|
android:layout_below="@id/appbar"
|
2020-08-22 22:22:06 +08:00
|
|
|
android:id="@+id/mViewPager"
|
2020-04-05 13:15:03 +08:00
|
|
|
android:layout_width="match_parent"
|
2020-08-22 22:22:06 +08:00
|
|
|
android:layout_height="match_parent" />
|
2020-04-05 13:15:03 +08:00
|
|
|
|
2020-08-15 22:05:07 +08:00
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintBottomNavigationView
|
2020-04-05 13:15:03 +08:00
|
|
|
android:id="@+id/navbar"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
|
app:bottomNavigationBackgroundTint="@color/default_color_nav"
|
|
|
|
|
app:elevation="4dp"
|
|
|
|
|
app:itemIconTintList="@drawable/bottom_item_icon_tint_list"
|
|
|
|
|
app:itemTextTintList="@drawable/bottom_item_icon_tint_list"
|
|
|
|
|
app:labelVisibilityMode="unlabeled"
|
|
|
|
|
app:menu="@menu/navbar_main" />
|
|
|
|
|
|
2020-08-15 22:05:07 +08:00
|
|
|
</com.huanchengfly.tieba.post.widgets.theme.TintRelativeLayout>
|