Code Monkey home page Code Monkey logo

Comments (4)

mbiamont avatar mbiamont commented on August 15, 2024 1

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.

Hamadakram avatar Hamadakram commented on August 15, 2024

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.

Hamadakram avatar Hamadakram commented on August 15, 2024

If you need to customize the library according to your requirement. You can clone and make the changes and use it.

from sneaker.

mbiamont avatar mbiamont commented on August 15, 2024

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)

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.