Steps to Get Width and Height of Screen · Create a DispalyMetrics() object. · Pass the displayMetrics object to getMetrics() method of Display class.
確定! 回上一頁