Git Product home page Git Product logo

Comments (24)

roughike avatar roughike commented on May 10, 2024

Give me 15 minutes or so and this will be fixed.

from bottombar.

roughike avatar roughike commented on May 10, 2024

What does your layout look like? Are you using fitsSystemWindows="true" or anything special?

I can't replicate the problem.

from bottombar.

NickM-27 avatar NickM-27 commented on May 10, 2024

yes, I will post below:

<android.support.design.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:id="@+id/list_coordinator"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:fitsSystemWindows="true"
        android:orientation="vertical">

    <android.support.design.widget.AppBarLayout
        android:id="@+id/list_bar_layout"
        android:layout_width="match_parent"
        android:layout_height="256dp"
        android:fitsSystemWindows="true"
        android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">

        <android.support.design.widget.CollapsingToolbarLayout
            android:id="@+id/list_collapsing_toolbar"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            app:contentScrim="@color/action_primary"
            app:title="@string/hub"
            android:fitsSystemWindows="true"
            app:layout_scrollFlags="scroll|exitUntilCollapsed"
            app:statusBarScrim="@color/color_primary_dark">

            <ImageView
                android:id="@+id/toolbar_image"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:fitsSystemWindows="true"
                android:scaleType="centerCrop"
                app:layout_collapseMode="parallax"
                tools:ignore="ContentDescription" />

            <android.support.v7.widget.Toolbar
                android:id="@+id/toolbar"
                android:layout_width="match_parent"
                android:layout_height="?attr/actionBarSize"
                android:popupTheme="@style/PopupStyle"
                app:layout_collapseMode="pin" />

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

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

    <android.support.v7.widget.RecyclerView
        android:id="@+id/list_main"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:layout_behavior="@string/appbar_scrolling_view_behavior" />

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

from bottombar.

roughike avatar roughike commented on May 10, 2024

It'll take a little more time. I just had to fix a force close before this.

from bottombar.

NickM-27 avatar NickM-27 commented on May 10, 2024

yeah, I think I experienced that FC as well so all good for me! :D

from bottombar.

roughike avatar roughike commented on May 10, 2024

bottomBar.noNavBarGoodness() should temporiraly fix this, but this way the Navigation Bar won't be transparent as seen in the second demo gif in the Readme.

I'll investigate more.

from bottombar.

NickM-27 avatar NickM-27 commented on May 10, 2024

Ok, just tested *without * the bottomBar.noNavBarGoodness() and now the bottombar is inside of the navigation bar. The method above does fix this.

from bottombar.

roughike avatar roughike commented on May 10, 2024

Now I think I got it.

Remove bottomBar.noNavBarGoodness() and replace it with a new method mBottomBar.noTopOffset(). You'll get the NavBar goodness without the top offset badness!

Tell me if it works for you.

P.S. That CV (?) app is looking sexy.

from bottombar.

NickM-27 avatar NickM-27 commented on May 10, 2024

Possibly, but now I have a different issue with that on. See below, that listview with food pass and buffet used to go all the way to the bottom, now it is stuck higher

And not sure what you mean by CV but thanks! Was really happy when I saw this library! Perfect for the app!

screenshot_20160317-235856

from bottombar.

roughike avatar roughike commented on May 10, 2024

Does removing android:fitsSystemWindows="true" from you CoordinatorLayout and not using mBottomBar.noTopOffset() or bottomBar.noNavBarGoodness() at all work?

from bottombar.

NickM-27 avatar NickM-27 commented on May 10, 2024

Ok, turning them all off results in that original top bar problem. If I get rid of the system windows but keep offset on it works except that the toolbar is inside the status bar

from bottombar.

roughike avatar roughike commented on May 10, 2024

Ugh.

Try updating to version 1.0.8 and trying only bottomBar.useOnlyStatusBarTopOffset().

If that doesn't work, I'll try to fix this again on Monday.

from bottombar.

NickM-27 avatar NickM-27 commented on May 10, 2024

Mostly, you fixed the other activities when I got rid of the systemWindows. But then it made it so the first panel with the collapsing toolbar had a statusbar filled already so that didn't work anymore. What I would recommend is just creating a method for each fragment that sets the status like you have now. That way you can set it up based on what kind of view is being used

from bottombar.

roughike avatar roughike commented on May 10, 2024

One thing you could try is putting your RecyclerView inside of BottomBar like this:

bottomBar.attach(findViewById(R.id.list_main), savedInstanceState);

Try playing with the attach(View view, Bundle savedInstanceState) and noTopOffset() and tell me if you get it to work properly.

from bottombar.

NickM-27 avatar NickM-27 commented on May 10, 2024

Interesting approach, but then wouldn't the bar completely disappear when I change from a different fragment to another? (using the built-in fragment support)

from bottombar.

roughike avatar roughike commented on May 10, 2024

I don't think it would. Then again, I'm drunk at the moment.

Try and see, and report the results.

from bottombar.

NickM-27 avatar NickM-27 commented on May 10, 2024

No dice, that did the same issue where the views can't go all the way (the last screenshot)

from bottombar.

roughike avatar roughike commented on May 10, 2024

Now updated the library to version 1.0.9.

Try if this now works (basically the same thing than before):

mBottomBar = BottomBar.attach(this, savedInstanceState);
mBottomBar.noTopOffset();

// other sexy magic

from bottombar.

NickM-27 avatar NickM-27 commented on May 10, 2024

Nope, still has that same issue in the second screenshot. Personally I don't mind using the noNavBarGoodness since a bar that changes color doesn't work for thematically for the app I am developing .

from bottombar.

roughike avatar roughike commented on May 10, 2024

That's weird. For me it worked.

Glad you don't need the heavenly (and buggy) goodness for this app though.

from bottombar.

NickM-27 avatar NickM-27 commented on May 10, 2024

I think the issue is coming from the fact that I have multiple fragments with different layouts, one that fits system windows and one that doesn't. Regardless I wouldn't worry about it since I already have my solution and I haven't seen anyone else with that issue.

from bottombar.

roughike avatar roughike commented on May 10, 2024

And here I was (almost) ripping my hair out of my head.
(Not really, more like scratching my head a little.)

Well I'm closing this one for now.

from bottombar.

PiyushPoriya avatar PiyushPoriya commented on May 10, 2024

Hello Please help through this,,

I am not able to change fragment using mBottomBar.selectTabAtPosition(1,true); its just change tab but not changing Fragment..

Dose any one face this problem?

from bottombar.

NickM-27 avatar NickM-27 commented on May 10, 2024

The library doesn't support fragments anymore, you need to do everything yourself.

from bottombar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.