Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想检测设备是否垂直握持,就像我们使用Panorama Picture.
Panorama Picture
AccelerometerX,Y和Z轴的条件应该是什么?
Accelerometer
帮我解决这个问题。
谢谢,
重力总是施加在原始加速度计上,所以如果力传感器是笔直向下的,那么手机就是笔直的。