Comments (4)
Sorry to be so insistent, but this problem can be easily solved by merging this PR : #25.
In few words, what I've changed is just putting a min height of 26dp
to the Sneaker's view.
from sneaker.
Hi, the fix you suggested is working for only your senario. For your case you are not removing status bar, you are making status bas Translucent
. If you make status bar hidden by
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
then Sneaker is working fine.
About your fix this will work for Translucent status bar but for no status bar its adding top padding that should not be there. Thats why i added this issue as a bug.
from sneaker.
If you need to customize the library according to your requirement. You can clone and make the changes and use it.
from sneaker.
OK, understood.
So, the fix is simple (to avoid any changes in other modes than translucent statusbar).
The method Utils.getStatusBarHeight()
must return at min 0 (neither -10000 nor 26dp).
With that, it should work for normal/fullscreen/translucent.
from sneaker.
Related Issues (20)
- Supports padding and margin. HOT 2
- Runtime bug and crash app HOT 3
- How to change Text color? HOT 2
- iOS fork? HOT 1
- Error Message Sneaker stays on the screen, doesn't disappear automatically
- [BUG] When activity is closed, and sneaker is visible..the activity crashes HOT 2
- Pre-Lollipop visibility issue
- OnSneakerDismissListener no response HOT 1
- Message Text always has a white background (see photo) HOT 1
- don't show text on api 23
- Doesn't appear on Android4.4
- Sneaker Position
- OnDismiss is called after few seconds
- How to change title and msg textSize? HOT 1
- Sneaker appear differently in activity and fragment HOT 1
- sneaker is not displaying top of the bottomSheet Dialog
- InComplete Alert Message HOT 5
- Could not resolve Sneaker in gradle
- custom view can not get focused
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 sneaker.