Getting the size of the window WITHOUT title/notification bars

后端 未结 5 807
傲寒
傲寒 2021-02-07 04:19

I\'ve been playing around with Android development and one of the things I\'d like to be able to do is dynamically create a background image for my windows, similar to the one b

5条回答
  •  臣服心动
    2021-02-07 04:44

    I have a tutorial on my blog that give you the ability to save your screen size on launch, You can read it here: http://evgeni-shafran.blogspot.com/2011/01/android-screen-size-problem.html

    Basicly you need to overide an onMeasure method of the first layout that hold you full screen, and get the width and height from there

提交回复
热议问题