Shayne Xiao
Shayne Xiao
@pinguo-zhouwei `mCurrentItem++`后与`mAdapter.getCount() - 1`比较,当`mCurrentItem`为倒数第二个时,自增后的`mCurrentItem`结果是`mAdapter.getCount() - 1`,再与`mAdapter.getCount() - 1`比较肯定相等,此时会走`mCurrentItem = 0`,重新开始,也就是说永远不会走最后一项
上述方法都有尝试,还是不行,使用`View.doOnPreDraw`方法,手动设置高度后可以正常显示
如果是windows电脑,配置一下pip环境变量,然后使用`pip install zstandard`命令,成功后重启命令行工具就可以了
You are using gradle offline mode,so that dependencies cannot download,please off the offline mode in gradle setting; The second qusetion beacuse you use Androidx in your project,follow the guide to...