android4.1+ 系统下在自定义ListView中覆盖onAttachedToWindow ()方法会导致滚动事件(OnScrol)和OnItemclick事件响应不了。

(请发邮件到   获得最新翻强软件。)

解决方法:

  @Override
 protected void onAttachedToWindow() {
//  setSelection(1);
  DebugUtils.i(TAG, "onAttachedToWindow()");
  super.onAttachedToWindow();  //  必须 调用父方法
  mRefreshViewText.setVisibility(View.GONE);
  mRefreshView.setVisibility(View.GONE);
 }

附带 4.1 虚拟机调试两个小问题。请发邮件到获得翻强软件

1、Android 启动模拟器是出现“Failed to allocate memory: 8”错误,模拟器无法启动:
   原因:设置了不正确AVD显示屏模式,4.0版默认的模式为WVGA800,改成WXGA720后导致不支持。
   解决:编辑这个AVD,将Skin -> Build in的参数改回默认参数。

   或者 重新建一个adv。。。
2、滑动报 “Unexpected value from nativeGetEnabledTags: 0” 错误。
   这个是 4.1+的bug 找到 官网回应 
   it is a bug in version r21, it will be fixed soon according to google.
   refer to ​​​http://code.google.com/p/android/issues/detail?id=39723​​​    ------
   Comment 7 by project member vs...@google.com, Nov 16 (3 days ago)
   We are aware of the issue and we are working on a fix.