Comments (24)
Give me 15 minutes or so and this will be fixed.
from bottombar.
What does your layout look like? Are you using fitsSystemWindows="true"
or anything special?
I can't replicate the problem.
from bottombar.
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.
It'll take a little more time. I just had to fix a force close before this.
from bottombar.
yeah, I think I experienced that FC as well so all good for me! :D
from bottombar.
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.
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.
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.
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!
from bottombar.
Does removing android:fitsSystemWindows="true"
from you CoordinatorLayout and not using mBottomBar.noTopOffset()
or bottomBar.noNavBarGoodness()
at all work?
from bottombar.
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.
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.
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.
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.
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.
I don't think it would. Then again, I'm drunk at the moment.
Try and see, and report the results.
from bottombar.
No dice, that did the same issue where the views can't go all the way (the last screenshot)
from bottombar.
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.
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.
That's weird. For me it worked.
Glad you don't need the heavenly (and buggy) goodness for this app though.
from bottombar.
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.
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.
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.
The library doesn't support fragments anymore, you need to do everything yourself.
from bottombar.
Related Issues (20)
- Not support set badge count in text format HOT 3
- Bump to version 26 HOT 1
- bottom bar not working on first time
- Change The BottomBar selected with Swipe Gesture
- How to change the icon in the code?
- Does it support changing the title color only? HOT 1
- How can I change the color of bottom bar item title , without affecting the bottom bar icon ?
- How do I remove the shadow of the click HOT 1
- Call Fragment onTabSelect
- "iconsOnly" doesn't center the icon in the view container
- BottomBar crashes when "minSdkVersion" is set to 21 HOT 1
- BottomBarBadge is not accessible.
- Crash: NullPointerException
- Vector image
- disable first tab autoselection HOT 2
- Programmatically activate tab without firing events
- Shy behaviour is not working
- open third tab onstart HOT 3
- Will this library support in SDK level 30 ?
- 可否实现选中一个图片,未选中一个图片 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bottombar.