Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Alexis Azanza
    @alzayon
    it seems that the black overlay takes into consideration the height of the activity, and not the height of the screen
    so a taller activity has a taller overlay, even though you only see what fits on the screen
    is there a way to fix this
    ?
    here is what it looks like if I have an activity that is taller than the screen
    here is what it looks like if the activity is as tall as the screen
    it looks fine if the activity is as tall as the screen
    please help
    thank you in advance :)
    Alexis Azanza
    @alzayon
    does the overlay take the height of the activity
    or of the screen?
    is the overlay the same height as the mRoot in
    mRoot = (ViewGroup) androidContent.getParent().getParent();
    Alexis Azanza
    @alzayon
    hey, so this is what i found out
    val displayMetrics = DisplayMetrics()
    windowManager.defaultDisplay.getMetrics(displayMetrics)
    val height = displayMetrics.heightPixels
    val width = displayMetrics.widthPixels
    height is 1920
    for the picture i pasted above where the focus is correct, the measuredHeight is 1848
    for the other picture where the focus is off, the measured height is 1920
    Alexis Azanza
    @alzayon
    okies, I found the solution
    fitSystemWindows(true)
    sorry about that :D
    thanks Faruk, I still love this library
    Faruk Toptaş
    @faruktoptas
    Hi Alexis
    good news to hear that you solved the problem.
    Most of the developers miss fitSystemWindows()
    Actually I want to handle it programmatically but I don't know if there is an easy way to do
    Can you share with me If you have an app on Google play using my library
    I want to add it to README file
    Alexis Azanza
    @alzayon
    oh im doing a company app, im not sure if im allowed to share
    hehe
    Faruk Toptaş
    @faruktoptas
    no problem :)
    let me know if you have any problem or need improvements