michael-rapp / androidbottomsheet Goto Github PK
View Code? Open in Web Editor NEWProvides a bottom sheet as proposed by Android's Material design guidelines.
License: Apache License 2.0
Provides a bottom sheet as proposed by Android's Material design guidelines.
License: Apache License 2.0
sorry, I am studing Android ,but I can't find the jar file,thx!
The show error message below when I import this project into Android Studio 1.5.1.
Error:A problem occurred configuring project ':example'.
A problem occurred configuring project ':library'.
Could not resolve all dependencies for configuration ':library:_debugCompile'.
> Could not resolve com.github.michael-rapp:android-util:1.4.5.
Required by:
com.github.michael-rapp:library:1.1.1
> No cached version of com.github.michael-rapp:android-util:1.4.5 available for offline mode.
When BottomSheet has many items and if you swipe up, the view becomes maximize mode.
Can I restrict this feature?
My client wants the maximum height of BottomSheet view.
Thanks in advance!
Hey there,
first things first: This library is amazing! We from the Appcelerator cross-platform community already wrapped it to be used from JavaScript via Ti.BottomSheet and it works great.
One suggestion that's open for discussion: On iOS, there is a destructive
property on the UIAlertController
which, presented as an ActionSheet
shows the selected option as a "critical" option. So if setIconColor
would not only allow to pass a color resource-id but also an index, the developer (especially in the cross platform world) could construct the same concept on Android.
I am not sure if this would still be "full native Android" then and would love to hear your feedback on this. As bottom sheets gain more and more popularity these days, it would be a great addition!
Hi Dear:
My item title's Language is Chinese,Device's size is 1280*720,But it can not be fully displayed.My BottomSheet style is BottomSheet.Style.GRID.
After creating a BottomSheet
using a builder, it is properly shown when calling its show
-method for the first time. But after the bottom sheet has been closed, it is not possible to show the same BottomSheet
instance again: Although the screen becomes dimmed, the bottom sheet does not become visible.
Hi Dear:
i set setOnItemClickListener and setOnItemLongClickListener,when i Long click,setOnItemClickListener also responsive
Hello! I get next error? when use add items with icons
BottomSheet.Builder builder = new BottomSheet.Builder(this);
builder.addItem(0, R.string.facebook_app_id, R.drawable.user_logo);
builder.addItem(1, R.string.facebook_app_id, R.drawable.user_logo);
builder.addDivider();
mBottomSheet = builder.create();
mBottomSheet.show();
12-25 20:40:34.087 31758-31758/com.softinlife.inventapp E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.softinlife.inventapp, PID: 31758
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageView.setVisibility(int)' on a null object reference
at de.mrapp.android.bottomsheet.adapter.DividableGridAdapter.visualizeItem(DividableGridAdapter.java:251)
at de.mrapp.android.bottomsheet.adapter.DividableGridAdapter.getView(DividableGridAdapter.java:658)
at android.widget.AbsListView.obtainView(AbsListView.java:2347)
at android.widget.GridView.onMeasure(GridView.java:1060)
at android.view.View.measure(View.java:17585)
at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:728)
at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:464)
at android.view.View.measure(View.java:17585)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:722)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:613)
at de.mrapp.android.bottomsheet.view.DraggableView.onMeasure(DraggableView.java:636)
at android.view.View.measure(View.java:17585)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
at android.view.View.measure(View.java:17585)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:722)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:613)
at android.view.View.measure(View.java:17585)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2618)
at android.view.View.measure(View.java:17585)
at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2033)
at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1191)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1397)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1079)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5914)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
at android.view.Choreographer.doCallbacks(Choreographer.java:580)
at android.view.Choreographer.doFrame(Choreographer.java:550)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5275)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:910)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:705)
Thanks in advance for your reply!)
When I was use bottomsheet with my custom view I get issue. When bottomsheet visible then I focus on the edittext unfortunately keyboard hide bottomsheet. I was write setSoftInputMode but it doesn't work. Why?
BottomSheet.Builder(context)
.setTitle("Deneme")
.setView(R.layout.add_suspect)
.create()
.apply {
setOnShowListener {
this.window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN or WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN)
}
show()
}
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.