Devel/ui/hooking
From Android中文网
Android中文网(androidcn.net) 版权申明 : creativecommons licenses
[编辑] 在屏幕元素中设置钩子
You can get a handle to a screen element by calling Activity.findViewById. You can use this handle to set or retrieve any values exposed by the object.
您可以使用Activity.findViewById来取得屏幕上的元素的句柄. 使用该句柄您可以设置或获取任何该对象外露的值.
TextView msgTextView = (TextView)findViewById(R.id.msg); msgTextView.setText(R.string.push_me);
