BottomBar icon indicating copy to clipboard operation
BottomBar copied to clipboard

BottomBar lost bb_behavior="shifting"

Open solareye opened this issue 7 years ago • 0 comments

BottomBar lost bb_behavior="shifting" when I use it on Activity

` <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true" tools:context=".ui.activity.MainActivity">

<FrameLayout
    android:id="@+id/fragmentContainer"
    android:layout_width="match_parent"
    android:layout_height="match_parent" />

<com.roughike.bottombar.BottomBar xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/bottomBar"
android:layout_width="match_parent"
android:layout_height="60dp"
android:layout_gravity="bottom"
android:background="@color/colorAccent"
app:bb_activeTabAlpha="1"
app:bb_activeTabColor="#ffffff"
app:bb_behavior="shy|shifting"
app:bb_inActiveTabAlpha="0.7"
app:bb_inActiveTabColor="#ffffff"
app:bb_tabXmlResource="@xml/bottombar_tabs"
app:bb_titleTextAppearance="@style/BottomBarText" />

<include layout="@layout/view_progress" />

</android.support.design.widget.CoordinatorLayout>`

and my fragment look like

` <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent">

<android.support.design.widget.AppBarLayout 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/app_bar_material_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white">


<android.support.v7.widget.Toolbar
    android:id="@+id/toolbar"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_gravity="center"
    android:background="@color/white"
    android:gravity="center"
    android:transitionName="actionBar"
    app:layout_scrollFlags="scroll|enterAlways|snap"
    app:theme="@style/ToolbarColoredBackArrow">

    <TextView ... />

</android.support.v7.widget.Toolbar>

</android.support.design.widget.AppBarLayout>

<android.support.v4.widget.NestedScrollView
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:layout_behavior="@string/appbar_scrolling_view_behavior"
    android:background="@color/white">

    <LinearLayout .../>

</android.support.v4.widget.NestedScrollView>

</android.support.design.widget.CoordinatorLayout>`

What am I doing wrong? How can I fix this?

solareye avatar Jul 13 '17 10:07 solareye