参考博文使用java.util.List.subList时最好小心点 List接口中定义: List<E> subList(int fromIndex, int toIndex); 英文注释: Returns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive. (If fromIndex and toIndex are equal, the…
List<String> mStrings=new ArrayList<>(); //初始化 for (int i = 0; i < 1020; i++) { mStrings.add(String.valueOf(i)); } List<List<String>> newStrings = new ArrayList<>(); if (mStrings.size() > 100) { if (mStrings.size() % 10…
iOS7之后经过滑动返回导航栏隐藏和显示带来的坑 Apple 自从iOS7之后增加了屏幕边缘右滑返回交互的支持,再配合UINavigationController的交换动画,pop上一级的操作变的非常带感,从此我很少使用点击左上角导航栏返回按钮了的方式返回.如果一个App不支持滑动返回,那说明太不注重客户体验了,等iOS9出来后,基本上的App都支持7.0以上吧. 接下来讲下滑动返回处理导航栏的显示和隐藏如果开发者不好好理解这块(动画效果),很容易给项目带来非常不好的体验. 比如:利用系统的UI…