Display中getHeight()和getWidth() 官方廢棄

今天使用Display獲取屏幕的寬和高時出現下面的提示(並且在部分5.0機型獲得的height都是錯誤):html Display dp=getWindowManager().getDefaultDisplay(); int Height=dp.getHeight(); ---->The method getHeight() from the type Display is d
相關文章
相關標籤/搜索