当前位置:网站首页>'getWidth()' is deprecated,'getHeight()' is deprecated
'getWidth()' is deprecated,'getHeight()' is deprecated
2022-06-10 12:59:00 【yechaoa】
getWidth() and getHeight() stay API 13(3.2) obsolete
Instead of writing
DisplayMetrics dm = new DisplayMetrics();
this.getWindowManager().getDefaultDisplay().getMetrics(dm);
int width = dm.widthPixels;
int height = dm.heightPixels;边栏推荐
- Use soapUI tool to generate SMS interface code
- DynaSLAM II: Tightly-Coupled Multi-Object Tracking and SLAM 论文阅读
- Office technical lecture: punctuation - Chinese - vertical
- JS array to JSON, JSON to array. Array to comma separated string, string to array
- [summary] individual competition supplement POJ - 3041 asteroids & codeforces - 173b chamber of Secrets
- 谷歌提出超强预训练模型CoCa,在ImageNet上微调Top-1准确率达91%!在多个下游任务上SOTA!
- CF894C Marco and GCD Sequence
- 蚂蚁金服杨军:蚂蚁数据分析平台的演进及数据分析方法的应用
- 从解读 BDC 自动生成的代码谈起,讲解 SAPGUI 的程序组成部分
- Oceanbase, phase II of the document promotion plan, invites you to jointly build documents
猜你喜欢

从解读 BDC 自动生成的代码谈起,讲解 SAPGUI 的程序组成部分

已拿offer,进阶学习

PCB learning notes (2) -3d packaging related

2022年6月中国数据库排行榜:TiDB卷土重来摘桂冠,达梦蛰伏五月夺探花
![Vdo-slam source code reading notes [1] dynamic obj part in track()](/img/18/7260d5b8dba4dcdb64d7f299198ad0.png)
Vdo-slam source code reading notes [1] dynamic obj part in track()

Today, a couple won the largest e-commerce IPO in Hong Kong

Good article sharing | 48 hour agile development introduction

How can the team be dissolved...

C # balanced weight distribution

微信web开发工具使用教程,公司开发web
随机推荐
Example of full page sliding screen at mobile terminal (sliding the whole screen up and down) (sorting)
Tensorflow2.0 advanced learning - image (11)
启牛能开户吗,在启牛开户安全么
Vdo-slam source code reading notes [2] local optimization and global optimization
Code free may event Microsoft low code matrix update; Multiple industry reports released
Leetcode 96. Différents arbres de recherche binaires
Vdo-slam: a visual dynamic object aware slam system paper reading
TIDB 初级课程体验 8 (集群的管理维护, 添加一个TIKV节点)
SparkStreaming实时数仓 问题&回答
2022年6月中国数据库排行榜:TiDB卷土重来摘桂冠,达梦蛰伏五月夺探花
The ability to register user names and passwords with the database
(5) Class, object and class file splitting operation (2)
Leetcode 96. 不同的二叉搜索樹
Can qiniu open an account? Can qiniu directly open the security of securities companies on the app
蔚来:“拿捏”了数据,“扭捏”着未来
Summary of Kitti related information
How can the team be dissolved...
VDMA commissioning summary
Altium Allegro PADS到底该选哪个EDA设计软件
TIDB 初級課程體驗 8 (集群的管理維護, 添加一個TIKV節點)