Open yejunrong opened 5 years ago
class collectIdTask extends AsyncTask<Integer, Integer, String> { @Override protected void onPreExecute() { super.onPreExecute(); } @Override protected String doInBackground(Integer... params) { try { collectIDMap(); Thread.sleep(1000); }catch (Exception e) {} return "执行完毕"; } @Override protected void onProgressUpdate(Integer... progress) { super.onProgressUpdate(progress); } @Override protected void onPostExecute(String result) { mWXHandler.sendEmptyMessage(1); //Log.d("main", "== sendMessage =="); super.onPostExecute(result); } }
Answer3: R.id.container_test_id 是在Activity的根结点上增加的一个FrameLayout,用于存储当前页面所有testId与nativeId的映射关系
container.setContentDescription(JSON.toJSONString(mIDMap));
下周会在blog中提供demo来展示如何run起来的
https://weex.apache.org/zh/blog/weex-auto-test-locating.html According to the official website tips, I found that there are more problems. 1, ”new collectIdTask().execute()“ run ”collectId(WXComponent comp, Map<String, String> map) “? 2,"collectIDMap()" When was it executed? 3,"R.id.container_test_id" what is it? 4,"mIDMap" When was this defined? What is the main use?
Can you provide a demo that can run?
thank you!