dumingwei

Results 6 comments of dumingwei

我在Fragment里面用的下拉刷新的库是这个https://github.com/hehonghui/Chris-Android-PullToRefresh 也有这个问题。在PullToRefreshRecyclerView中创建recyclerview 的时候指定一下id就行了。 `RecyclerView recyclerView = new RecyclerView(context, attrs); recyclerView.setId(R.id.recyclerview); return recyclerView;` 但是具体的原因我也不知道

修改main函数可以解决这个问题。 ``` void main() async { WidgetsFlutterBinding.ensureInitialized(); Global.init().then((e) => runApp(MyApp())); } ```

应该跟这行代码有关系 adapter.notifyItemRangeInserted(0, 25); ,换成 adapter.notifyDataSetChanged 试一试?

这个问题我也遇到了,有点不理解就是为什么不设置 Window的flag 竖直方向上比较高的图片左右就会留白。是不是跟ImageView的缩放属性是 fit_center 还是center_crop有关呢