wammy-h
wammy-h
我禁止了复用还是有这个问题
我的是类似皮皮虾那种视频 图片 文字混合的列表 发现log中执行到onStatePlaying时textureViewContainer的宽高为0了 当我滑动列表中断视频播放后 在重新滑回来时 重复2到3次 就会出现此问题
public void onStatePlaying() { Log.i(TAG, "onStatePlaying " + " [" + this.hashCode() + "] "); if(null!=textureViewContainer.getChildAt(0)){ Log.d(TAG, "让我看看你的宽"+textureViewContainer.getChildAt(0).getWidth()); Log.d(TAG, "让我看看你的高"+textureViewContainer.getChildAt(0).getHeight()); if(0==textureViewContainer.getChildAt(0).getWidth()&&0==textureViewContainer.getChildAt(0).getHeight()){ state = STATE_NORMAL; clickStart(); }else { if (state ==...
2022-04-12 10:59:04.230 20025-20025/com.gtgy.countryn D/JZVD: 让我看看你的宽0 2022-04-12 10:59:04.230 20025-20025/com.gtgy.countryn D/JZVD: 让我看看你的高0
> 问题是什么呢? 按照上面的配置点击图片打开预览时 预览页面会逆时针旋转大概45度 这个时哪里来的动画吗
> 可否录个屏看看呢? https://github.com/user-attachments/assets/c3fbf5d9-382c-41fa-9ab0-ce905ee9eb21
> 你在这个手机上面直接运行demo看看呢? 扫码的demo没有这个问题
> 手机设置自动旋转了吗? 没有 方向锁定了
是不是它的原因
就是overridePendingTransition的原因 我代码下载下来 注释掉这个动画就好了