關於獲取Flex Mobile螢幕寬高

2021-06-09 01:27:44 字數 720 閱讀 2218

1. mobile width and height

import flash.display.screen;

import flash.system.capabilities;

trace(capabilities.screenresolutionx, capabilities.screenresolutiony, capabilities.screendpi);

trace(screen.mainscreen.bounds.width, screen.mainscreen.bounds.height);

trace(stage.fullscreenwidth, stage.fullscreenheight);

3. actionbar width and height

4. task bar width and height

trace(screen.mainscreen.bounds.width, screen.mainscreen.bounds.height);

trace(screen.mainscreen.visiblebounds.width, screen.mainscreen.visiblebounds.height);

trace(screen.mainscreen.bounds.height - screen.mainscreen.visiblebounds.height);

5. portrait -> landscape

android 截圖內容的獲取

那麼來講一下如何獲取。當然截圖的快捷鍵自己網路查詢。主要用到的類為contentobserver,下面來看看詳細的 private static final string external content uri matcher mediastore.images.media.external co...

使用adb獲取手機截圖

為了方便獲取手機的截圖,把這個過程寫成bat指令碼,先上 echo off set tsp time 0,1 if tsp set date time date 0,4 date 5,2 date 8,2 0 time 1,1 time 3,2 time 6,2 else set date time...

關於觸控螢幕除錯

define tsp sample num 20 define tsp adc delay 4000 至於呼叫的timer中斷,每秒次數降到50次即可 define tsp sample rate low 50 50 samples per sec define tsp sample rate hi...