对Android近期任务列表格RecentApplications地简单分析资料报告Word文件下载.docx

上传人:b****0 文档编号:13918313 上传时间:2022-10-15 格式:DOCX 页数:15 大小:22.21KB
下载 相关 举报
对Android近期任务列表格RecentApplications地简单分析资料报告Word文件下载.docx_第1页
第1页 / 共15页
对Android近期任务列表格RecentApplications地简单分析资料报告Word文件下载.docx_第2页
第2页 / 共15页
对Android近期任务列表格RecentApplications地简单分析资料报告Word文件下载.docx_第3页
第3页 / 共15页
对Android近期任务列表格RecentApplications地简单分析资料报告Word文件下载.docx_第4页
第4页 / 共15页
对Android近期任务列表格RecentApplications地简单分析资料报告Word文件下载.docx_第5页
第5页 / 共15页
点击查看更多>>
下载资源
资源描述

对Android近期任务列表格RecentApplications地简单分析资料报告Word文件下载.docx

《对Android近期任务列表格RecentApplications地简单分析资料报告Word文件下载.docx》由会员分享,可在线阅读,更多相关《对Android近期任务列表格RecentApplications地简单分析资料报告Word文件下载.docx(15页珍藏版)》请在冰豆网上搜索。

对Android近期任务列表格RecentApplications地简单分析资料报告Word文件下载.docx

static 

final 

String 

LOG_TAG 

"

RecentApplicationsDialog"

;

4. 

boolean 

DBG_FORCE_EMPTY_LIST 

false;

5. 

6. 

StatusBarManager 

sStatusBar;

7. 

8. 

int 

NUM_BUTTONS 

8;

9. 

MAX_RECENT_TASKS 

2;

allow 

some 

discards 

10. 

11. 

TextView[] 

mIcons 

new 

TextView[NUM_BUTTONS];

12. 

View 

mNoAppsText;

13. 

IntentFilter 

mBroadcastIntentFilter 

IntentFilter(Intent.ACTION_CLOSE_SYSTEM_DIALOGS);

14. 

15. 

RecentTag 

16. 

ActivityManager.RecentTaskInfo 

info;

17. 

Intent 

intent;

18. 

19. 

20. 

Handler 

mHandler 

Handler();

21. 

Runnable 

mCleanup 

Runnable() 

22. 

public 

void 

run() 

23. 

dump 

extra 

memory 

we'

re 

hanging 

on 

to 

24. 

(TextView 

icon:

mIcons) 

25. 

icon.setCompoundDrawables(null, 

null, 

null);

26. 

icon.setTag(null);

27. 

28. 

29. 

};

30. 

31. 

RecentApplicationsDialog(Context 

context) 

32. 

super(context, 

.android.internal.R.style.Theme_Dialog_RecentApplications);

33. 

34. 

35. 

36. 

/** 

37. 

We 

create 

the 

recent 

applications 

dialog 

just 

once, 

and 

it 

stays 

around 

(hidden) 

38. 

until 

activated 

by 

user. 

39. 

40. 

see 

PhoneWindowManager#showRecentAppsDialog 

41. 

*/ 

42. 

Override 

43. 

protected 

onCreate(Bundle 

savedInstanceState) 

44. 

super.onCreate(savedInstanceState);

45. 

46. 

Context 

context 

getContext();

47. 

48. 

if 

(sStatusBar 

== 

null) 

49. 

sStatusBar 

(StatusBarManager)context.getSystemService(Context.STATUS_BAR_SERVICE);

50. 

51. 

52. 

Window 

window 

getWindow();

53. 

window.requestFeature(Window.FEATURE_NO_TITLE);

54. 

window.setType(WindowManager.LayoutParams.TYPE_SYSTEM_DIALOG);

55. 

window.setFlags(WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM, 

56. 

WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM);

57. 

window.setTitle("

Recents"

);

58. 

59. 

setContentView(.android.internal.R.layout.recent_apps_dialog);

60. 

61. 

WindowManager.LayoutParams 

params 

window.getAttributes();

62. 

params.width 

WindowManager.LayoutParams.MATCH_PARENT;

63. 

params.height 

64. 

window.setAttributes(params);

65. 

window.setFlags(0, 

WindowManager.LayoutParams.FLAG_DIM_BEHIND);

66. 

67. 

//默认显示8个 

68. 

mIcons[0] 

(TextView)findViewById(.android.internal.R.id.button0);

69. 

mIcons[1] 

(TextView)findViewById(.android.internal.R.id.button1);

70. 

mIcons[2] 

(TextView)findViewById(.android.internal.R.id.button2);

71. 

mIcons[3] 

(TextView)findViewById(.android.internal.R.id.button3);

72. 

mIcons[4] 

(TextView)findViewById(.android.internal.R.id.button4);

73. 

mIcons[5] 

(TextView)findViewById(.android.internal.R.id.button5);

74. 

mIcons[6] 

(TextView)findViewById(.android.internal.R.id.button6);

75. 

mIcons[7] 

(TextView)findViewById(.android.internal.R.id.button7);

76. 

mNoAppsText 

findViewById(.android.internal.R.id.no_applications_message);

77. 

78. 

//关键在哪,你懂得... 

79. 

b:

80. 

b.setOnClickListener(this);

81. 

82. 

83. 

84. 

85. 

onKeyDown(int 

keyCode, 

KeyEvent 

event) 

86. 

(keyCode 

KeyEvent.KEYCODE_TAB) 

87. 

Ignore 

all 

meta 

keys 

other 

than 

SHIFT. 

The 

app 

switch 

key 

could 

be 

88. 

fallback 

action 

chorded 

with 

ALT, 

META 

or 

even 

CTRL 

depending 

map. 

89. 

DPad 

navigation 

is 

handled 

ViewRoot 

elsewhere. 

90. 

backward 

event.isShiftPressed();

91. 

numIcons 

mIcons.length;

92. 

numButtons 

0;

93. 

while 

(numButtons 

<

&

mIcons[numButtons].getVisibility() 

View.VISIBLE) 

94. 

+= 

1;

95. 

96. 

!

0) 

97. 

nextFocus 

?

:

98. 

(in

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 党团工作 > 入党转正申请

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1