0
编程中的新功能。下面的代码正在获取设备的屏幕尺寸。这是我的问题。我怎样才能取代这个代码来获得我的relativelayout的宽度和高度?如何获得我的布局的高度和宽度
windowwidth = getWindowManager().getDefaultDisplay().getWidth();
windowheight = getWindowManager().getDefaultDisplay().getHeight();
你想要的屏幕尺寸相对layou的尺寸?? –