GithubHelp home page GithubHelp logo

Comments (28)

mikepenz avatar mikepenz commented on June 14, 2024

@EpsilonOrionis do you talk of the normal MiniDrawer or about the CrossfadeDrawerLayout with the MiniDrawer

EDIT Sorry missed that we are in the project of the CrossfadeDrawerLayout :D Will check it later today

from crossfadedrawerlayout.

EpsilonOrionis avatar EpsilonOrionis commented on June 14, 2024

No problem, let me know :D

from crossfadedrawerlayout.

mikepenz avatar mikepenz commented on June 14, 2024

fixed in v0.2.0 ;)

from crossfadedrawerlayout.

EpsilonOrionis avatar EpsilonOrionis commented on June 14, 2024

Thank you Mike, you're always available :)

from crossfadedrawerlayout.

mikepenz avatar mikepenz commented on June 14, 2024

i hope it works now as expected :)

from crossfadedrawerlayout.

EpsilonOrionis avatar EpsilonOrionis commented on June 14, 2024

It's working as expected :) Oh another question, how can I detect onOpen?

from crossfadedrawerlayout.

mikepenz avatar mikepenz commented on June 14, 2024

hmmm as it's a DrawerLayout with the normal listeners it provides

from crossfadedrawerlayout.

EpsilonOrionis avatar EpsilonOrionis commented on June 14, 2024

Can you make me an example?

from crossfadedrawerlayout.

mikepenz avatar mikepenz commented on June 14, 2024

@EpsilonOrionis you need to know when the drawer is opened right? not for the event when the miniDrawer was changed to the normal drawer?

from crossfadedrawerlayout.

EpsilonOrionis avatar EpsilonOrionis commented on June 14, 2024

In Lollipop+ devices we can make the status bar transparent right? I love it. I want to make the status bar transparent during the miniDrawer open animation.

from crossfadedrawerlayout.

mikepenz avatar mikepenz commented on June 14, 2024

The default CrossfadeDrawerLayout sample of the MaterialDrawer has the MiniDrawer below the Statusbar yes.

Regarding your previous question. which open do you want to detect? and why?

from crossfadedrawerlayout.

EpsilonOrionis avatar EpsilonOrionis commented on June 14, 2024

First question: Changing
Second question: Because it's nice. The MaterialDrawer will be under the transparent status bar.

from crossfadedrawerlayout.

mikepenz avatar mikepenz commented on June 14, 2024

@EpsilonOrionis you mean chaning from MiniDrawer to the normal Drawer right?

from crossfadedrawerlayout.

EpsilonOrionis avatar EpsilonOrionis commented on June 14, 2024

Yep

from crossfadedrawerlayout.

mikepenz avatar mikepenz commented on June 14, 2024

you can provide a CrossfadeListener and check when it is completely slided into one direction:
https://github.com/mikepenz/CrossfadeDrawerLayout/blob/develop/library/src/main/java/com/mikepenz/crossfadedrawerlayout/view/CrossfadeDrawerLayout.java#L87

from crossfadedrawerlayout.

EpsilonOrionis avatar EpsilonOrionis commented on June 14, 2024

How can I use it? Sorry if I'm pedant, but your library is the only one that fits my needs. And it's awesome!

from crossfadedrawerlayout.

mikepenz avatar mikepenz commented on June 14, 2024

@EpsilonOrionis as far as i know it is also the only library providing such kind of behavior :D

something like this:

        //hook to the crossfade event
        crossfadeDrawerLayout.withCrossfadeListener(new CrossfadeDrawerLayout.CrossfadeListener() {
            @Override
            public void onCrossfade(View containerView, float currentSlidePercentage, int slideOffset) {
                if (currentSlidePercentage == 0) {
                    Log.e("CrossfadeDrawerLayout", "MiniDrawer shown (closed)");
                } else if (currentSlidePercentage == 100) {
                    Log.e("CrossfadeDrawerLayout", "Normal Drawer shown (opened)");
                }
            }
        });

from crossfadedrawerlayout.

EpsilonOrionis avatar EpsilonOrionis commented on June 14, 2024

Yes you're right, and everybody knows it :D. Ok aaaand will it work even if currentSlidePercentage is between 0 a 100? Maybe I can use e.g: else if (currentSlidePercentage > 100). What do you think about it?

from crossfadedrawerlayout.

mikepenz avatar mikepenz commented on June 14, 2024

@EpsilonOrionis haha if you check > 100 you will never have a match :D as it is exact 100 :P You should probably check for the exact values as this is called many times if the slide is done. so for each new slide percentage value.
not sure what you will do if it is opened but you can try it :P

from crossfadedrawerlayout.

EpsilonOrionis avatar EpsilonOrionis commented on June 14, 2024

What a mess! And you're laughing! I'm ruined hahahahahahahahahah :D

from crossfadedrawerlayout.

mikepenz avatar mikepenz commented on June 14, 2024

@EpsilonOrionis haha there are things worse than that 😄 to be fair. it was luck i saw it. It's 02:00am at my place and i have to get up in less than 5hours.

so i hope my hints helped you :P. I'm out for today.

from crossfadedrawerlayout.

EpsilonOrionis avatar EpsilonOrionis commented on June 14, 2024

Where are you from? I'm Italian.

from crossfadedrawerlayout.

mikepenz avatar mikepenz commented on June 14, 2024

Austria :P (the one in europe :P. just in case you missread it as Australia :P)

from crossfadedrawerlayout.

EpsilonOrionis avatar EpsilonOrionis commented on June 14, 2024

I'm in Europe too, I know the Austria you're talking about :D

from crossfadedrawerlayout.

mikepenz avatar mikepenz commented on June 14, 2024

Haha :D Where are you from?

from crossfadedrawerlayout.

EpsilonOrionis avatar EpsilonOrionis commented on June 14, 2024

Italy, Puglia is the region's name

from crossfadedrawerlayout.

mikepenz avatar mikepenz commented on June 14, 2024

Ah :D So the same time zone :P. I am off now. Good night.

from crossfadedrawerlayout.

EpsilonOrionis avatar EpsilonOrionis commented on June 14, 2024

Night

from crossfadedrawerlayout.

Related Issues (16)

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.