Hi rajesh > I am new in android, i am getting the width and height for the > screen using below code > > WindowManager w = getWindowManager(); > Display d = w.getDefaultDisplay(); > int totalwidth_screen = d.getWidth(); > int totalheight_screen = d.getHeight(); > > But i need to get screen height minus the title bar and status bar. > how to get it???
For instance you can add custom view (layout width and height are equal to fill_parent) to your root FrameLayout and override onSizeChanged method to get width and height needed. This is some hack but it's work fine for me! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

