Giter VIP home page Giter VIP logo

androidbottomsheet's People

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

androidbottomsheet's Issues

Improvement: Add the ability to pass an index to setItemColor()

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!

how to change item title size?

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.

No cached version of com.github.michael-rapp:android-util:1.4.5 available for offline mode.

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.

Error use images in items

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!)

Keyboard hide bottomsheet issue

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()
                    }

about item listener

Hi Dear:
i set setOnItemClickListener and setOnItemLongClickListener,when i Long click,setOnItemClickListener also responsive

where is the jar?

sorry, I am studing Android ,but I can't find the jar file,thx!

Not possible to show same BottomSheet multiple times

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.

Disable maximize function

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!

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.