Comments (28)
@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.
No problem, let me know :D
from crossfadedrawerlayout.
fixed in v0.2.0 ;)
from crossfadedrawerlayout.
Thank you Mike, you're always available :)
from crossfadedrawerlayout.
i hope it works now as expected :)
from crossfadedrawerlayout.
It's working as expected :) Oh another question, how can I detect onOpen?
from crossfadedrawerlayout.
hmmm as it's a DrawerLayout
with the normal listeners it provides
from crossfadedrawerlayout.
Can you make me an example?
from crossfadedrawerlayout.
@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.
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.
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.
First question: Changing
Second question: Because it's nice. The MaterialDrawer will be under the transparent status bar.
from crossfadedrawerlayout.
@EpsilonOrionis you mean chaning from MiniDrawer
to the normal Drawer
right?
from crossfadedrawerlayout.
Yep
from crossfadedrawerlayout.
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.
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.
@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.
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.
@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.
What a mess! And you're laughing! I'm ruined hahahahahahahahahah :D
from crossfadedrawerlayout.
@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.
Where are you from? I'm Italian.
from crossfadedrawerlayout.
Austria :P (the one in europe :P. just in case you missread it as Australia :P)
from crossfadedrawerlayout.
I'm in Europe too, I know the Austria you're talking about :D
from crossfadedrawerlayout.
Haha :D Where are you from?
from crossfadedrawerlayout.
Italy, Puglia is the region's name
from crossfadedrawerlayout.
Ah :D So the same time zone :P. I am off now. Good night.
from crossfadedrawerlayout.
Night
from crossfadedrawerlayout.
Related Issues (16)
- Empty mini drawer HOT 5
- CrossFade cannot scroll HOT 1
- Cross fade / mini drawer issue HOT 1
- Show mini drawer on start HOT 1
- Right drawer HOT 3
- OnDrawerItemClickListener not always called (CrossfadeDrawerLayout) HOT 15
- CrossfadeDrawerLayout below status bar and App bar HOT 2
- Navigation drawer full screen HOT 3
- Drawer icon is not visible HOT 5
- Graphical issue HOT 3
- Centered icons in MiniDrawer HOT 8
- Trying to get library from gradle HOT 1
- Update MiniDrawer HOT 2
- How to change the icon background on selection. HOT 5
- custom icon selection color or effect. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crossfadedrawerlayout.