GeekFan
GeekFan
有可能是resourceImpl又重新生成了 导致之前替换的sMergedResourcesImpl没有生效, 可以试下在ApkInstrumentation的callActivityOnCreate时替换下ContextImpl里的mResources
目前临时解决方法: 1.本地service可以设置`process`属性的把它放到子进程里,或者修改`onStartCommand`的return值为`START_NOT_STICKY`。 2.第三方SDK的service就麻烦了,只能看能不能设置`process`属性放在子进程。
是用什么版本的手机试的?我这边只有4.2.2才会出现,高版本也是没问题
更新状态 已经通过在`ActivityThreadHandlerCallback`中处理message `CREATE_SERVICE`参照`proivder`延时安装 对Service也进行延时创建和启动
用`gradle smallLint`命令 看看是不是有class重复了
have same issue.thanks for this quick fix.
just change this method: @Override public void adjustScroll(int scrollHeight) { if (scrollHeight == 0&& scrollView.getScrollY() > Constants.headerHeight) { return; } scrollView.scrollTo(scrollView.getScrollX(),Constants.headerHeight- scrollHeight); }
u can use https://github.com/JakeWharton/NineOldAndroids
i use staggergridview and the item are different sizes this is my solution: ``` mMinHeaderHeight = mHeaderHeight - mTabsHeight; mMinHeaderTranslation = -mMinHeaderHeight; public int getScrollY(StaggeredGridView view, int pagePosition) { View...
@yolapop if you use something like StaggeredGridView,PLA_ListView .it don't implement smoothScrollToPositionFromTop or setSelectionFromTop method . so when changing tabs it won't work well. as far as i know ,in this...