Comments (6)
Sorry - I figured it out guys.
I had the following code in my layout file:
<com.flipboard.bottomsheet.BottomSheetLayout
android:id="@+id/bottomsheet"
android:layout_width="match_parent"
android:layout_height="match_parent"
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">
<android.support.design.widget.CoordinatorLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
>
Because I have said android:fitsSystemWindows="true", it actually stretches the bottomsheet to behind the statusbar. Removing that line corrects the display.
from bottomsheet.
Great. I'm happy you figured it out
from bottomsheet.
Hi.. I am facing problem with bottom sheet.
In my case when i am opening MenuItems as bottom sheet then it works fine.
but when i want to open my custom layout (linearLayout or RelativeLayout) it create problem for me..
Can any one help me..
can anyone send the code with axml file and code to open BottomSheet in activity. with brief explanation.
Thanks in advanced.
from bottomsheet.
The reason why this happens is because your xml contain
android:fitsSystemWindows="true"
Remove this line from your xml and it should work.
On Thu, Mar 10, 2016 at 1:08 PM, Naveen Tiwari [email protected]
wrote:
Hi.. I am facing problem with bottom sheet.
In my case when i am opening MenuItems as bottom sheet then it works fine.
but when i want to open my custom layout (linearLayout or RelativeLayout)
it create problem for me..
Can any one help me..
can anyone send the code with axml file and code to open BottomSheet in
activity. with brief explanation.
Thanks in advanced.—
Reply to this email directly or view it on GitHub
#77 (comment)
.
from bottomsheet.
My Problem is when i am writing the code
CoordinatorLayout coordinatorLayout = (CoordinatorLayout) FindViewById(Resource.Id.rootBottomSheet);
View bottomSheet = coordinatorLayout.FindViewById(Resource.Id.bottomSheetLayout);
BottomSheetBehavior behavior = BottomSheetBehavior.from (bottomSheet);
at BottomSheetBehavior it is showing error.that it does not exist in the current context.
Please Some One Help i am new to android.
from bottomsheet.
@Naveen9453 you are looking for the design support library's bottomsheet, not this one.
from bottomsheet.
Related Issues (20)
- find crash
- BottomSheet appears in center of page
- Access Buttons in the Bottomsheet
- how to set different style for different status menu item in MenuSheet
- FloatingActionButton overlaps bottomsheet
- There is no way of knowing if the BottomSheet is dismissing HOT 2
- Efficiency vs Google's standard bottom? HOT 1
- Adding All Social Media
- Any scroll-down-picker won't work with bottom sheet
- Have problems with UnityPlayerActivity
- Rounded Corners HOT 1
- MenuSheetView icon
- Bug in height size after expanded list
- BottomSheetFragment expands by himself when I remove elements from the view.
- The width of the bottomsheet on the flat panel device can not occupy the pan
- Can't build project
- Bug: bottom sheet looks almost non-existing when on landscape HOT 1
- Dialog shadow is not appearing in front of status bar.
- java.lang.NullPointerException RecycyclerView
- XPopup is better! https://github.com/li-xiaojun/XPopup
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 bottomsheet.