heyalex / bottomdrawer Goto Github PK
View Code? Open in Web Editor NEWBottomSheet with animations
License: MIT License
BottomSheet with animations
License: MIT License
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
This is the screenshot from my One Plus 8 device:
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
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
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.
Please provide Java Implementation
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.