Code Monkey home page Code Monkey logo

Comments (6)

Winghin2517 avatar Winghin2517 commented on July 17, 2024 3

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.

markrietveld avatar markrietveld commented on July 17, 2024

Great. I'm happy you figured it out

from bottomsheet.

Naveen9453 avatar Naveen9453 commented on July 17, 2024

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.

Winghin2517 avatar Winghin2517 commented on July 17, 2024

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.

Naveen9453 avatar Naveen9453 commented on July 17, 2024

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.

ZacSweers avatar ZacSweers commented on July 17, 2024

@Naveen9453 you are looking for the design support library's bottomsheet, not this one.

from bottomsheet.

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.