Giter VIP home page Giter VIP logo

heyalex / bottomdrawer Goto Github PK

View Code? Open in Web Editor NEW
423.0 8.0 43.0 37.45 MB

BottomSheet with animations

Home Page: https://medium.com/@heyalex/bottom-sheet-like-in-a-google-task-app-16cca3766204?source=friends_link&sk=578bb8863b4b7e2aaa7f3cfa351762cf

License: MIT License

Kotlin 88.65% Java 11.35%
bottom-sheets bottomdrawer bottomsheetdialogfragment bottomsheet-android bottomsheet-dialogs-library android-ui animation

bottomdrawer's People

Contributors

heyalex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bottomdrawer's Issues

Problem with Api version 29 et 30

Hello,

The behavior_peekHeight attribute is not respected on Android version 29 and 30, there is additional place added.

See attached screenshots
android29
android27

Thanks

The corners are not rounded

This is the screenshot from my One Plus 8 device:

Screenshot_20210331-161316

The corners are not rounded. This can be reproduced for all 3 buttons. I just built this commit from the develop branch.

Device info:

Model: OnePlus IN2010
Android version: 11 - R
API level: 30
Drawable density: 450 (dpi)
Layout size: normal
Screen (dpi): 450
Width (px): 1080
Height (px): 2400
Usable width (px): 1080
Usable height (px): 2162
Width (dp): 384
Height (dp): 853
Smallest dp: 384
Orientation: Portrait
Orientation degree: 0°
Diagonal Size(inches): 6.0
X dpi: 391,9
Y dpi: 403,7
Touchscreen: Finger
Refresh rate (fps): 90,0

UI issues while setting constraints.

Hi, I've created the fragment which has a header title and detail and a button at the bottom.
Please see the attached screenshot, and observe the constraints that I set. I set the height 0dp for TextView that is in between of header title and bottom button so that it should remain in the middle and top & bottom margins should remain 20dp and 25dp respectively. But when I run the app the middle view i.e. TextView, does not appear, only I see the header title and bottom button.
Screen Shot 2020-01-21 at 9 52 12 PM
Screenshot_1579661536

On the other hand, If I set the constraints of TextView vertically center, and If I have a very large text that I want to be scrollable, in that case, but what happens, the text view gone out of the constraints, top & bottom constraints overlaps to the heder title and bottom button respectively.
Please see attached screenshot for your reference.
Screen Shot 2020-01-21 at 10 01 36 PM
Screenshot_1579662152
Screenshot_1579662140

I want the bottom button to be sticky at the bottom. In the last screenshot, the bottom drawer sheet has a smaller view initially, and I don't see the button at the bottom. When I swipe up for full view, then the button appears. These kind of issues I'm facing at the moment. Since I'm new in android development so struggling. Kindly bear with me in this regard and let me know how can I fix these issues?

Thanks a lot.
Regards,
Hassan

Java Usage?

How to use the library in java

I couldn't go further

public class BottomDrawerFragment extends com.github.heyalex.bottomdrawer.BottomDrawerFragment {

}

Neither it asks to overrride any methods

No support for navigation in bottom sheet

Hi, first of all, it was really great to have this control. I like it very much.
Secondly, I'm wondering if I could have the feature of navigating multiple fragments within bottom sheet.

Example: I opened the bottom sheet, and within that sheet I want to add another fragment or replace one more fragment and so on. Is this possible? If so, currently how can I add another fragment within same bottom sheet. I'm new in Android and trying to implement same as iOS.

Look forward to hearing from you.

Regards,
Hassan

Predefined height and Parameters

Hey There,

Nice Library, my compliments for your work.

I have more 2 questions then bugs.
Is it possible to give it a predefined height when you open the bottom drawer? Now it always goes half the screen first.
And then when you slide it a bit it goes to the right height.

And my second question is it possible to give it some parameters with it when you open the bottom drawer?
So that for example I can show a Profile fragment.

Thank you in advance.

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.