当前位置:网站首页>'getWidth()' is deprecated,'getHeight()' is deprecated
'getWidth()' is deprecated,'getHeight()' is deprecated
2022-06-10 11:34:00 【yechaoa】
getWidth()和getHeight()在API 13(3.2)过时
代替写法
DisplayMetrics dm = new DisplayMetrics();
this.getWindowManager().getDefaultDisplay().getMetrics(dm);
int width = dm.widthPixels;
int height = dm.heightPixels;边栏推荐
- 【Question】rxjs/operator takeWhile vs takeUntil
- print(net) vs. net.parameters vs. net.named_parameters
- 2022 CISCN初赛 Satool
- 还活在上个时代,Etcd 3.0 实现分布式锁竟如此简单!
- 入门篇:从 etcd 名字的由来,到安装部署和使用姿势
- 搜狐员工遭遇工资补助诈骗 黑产与灰产有何区别 又要如何溯源?
- In 2021, the revenue of China's electronic components will be the first, revealing the development path of precision and high quality of Tencent
- 『忘了再学』Shell基础 — 29、AWK内置变量
- 证券期货业迎数据监管新规,IP-guard助力完善数据安全管理
- B站教學 手把手教你使用YOLOV5之口罩檢測項目 最全記錄詳解 ( 深度學習 / 目標檢測 / pytorch )
猜你喜欢

Source of concurrent bugs (I) - visibility

搜狐员工遭遇工资补助诈骗 黑产与灰产有何区别 又要如何溯源?

"Duty" is waiting for you| Book planning and editing (Conference Proceedings)

“减负”,让“猪”可以飞得更高

Flutter socketio example

浅谈分布式事务

【网易云信】深度剖析「圈组」消息系统设计 | 「圈组」技术系列文章

Practice of Flink CDC + Hudi massive data entering the lake in SF

In commemoration of the 16th day of the first month, the total number of visits to the studio exceeded one million

Testing ovn manually based on LXD (by quqi99)
随机推荐
Do you have an online stock account? Is it safe to open an account online?
LVS+Keepalived高可用群集
【Question】what‘s the scenario of aliasing a class interface
十二、进程地址空间(pmap;vdso;mmap)
动态规划(mid)
[WIP] Openstack Masakari (by quqi99)
Recursive traversal and non recursive traversal of binary tree (C language version)
La poignée d'enseignement de la station B vous apprend à utiliser le masque yolov5 pour tester les éléments de l'enregistrement le plus complet (apprentissage profond / détection d'objets / pythorch)
如何写出不容易内存溢出的代码
Fun face recognition software
Transfomer各组件与Pytorch
Initial experience of a one-stop solution for general target detection and recognition based on shengteng AI heterogeneous computing architecture cann
SqlSessionFactory和SqlSession详解
搜狐员工遭遇工资补助诈骗 黑产与灰产有何区别 又要如何溯源?
Peking University and Microsoft | progress in reasoning to make language models better
IDEA自定义配置链接nacos
正常的controller结构
redis 面经详解
How zoom closes the microphone when joining a meeting
并发bug之源(一)-可见性