问题描述
所以我试图将振幅数据从片段传递到回收器视图并更新可视化器,但我无法连续发送振幅,这是第一次,这就是我使用的 我能够在 onVolumeChanged 方法中获取继续数据,但我无法将其发送到回收站视图 片段代码
public void onVolumeChanged(int volume) {
try {
waveview.updateAmplitude((float) volume / 20,true);
audiolists.get(first_view.visible_pos).setWaveamp(volume);
Log.e("wavedata",volume + "");
Log.e("wavedata_volumedata",audiolists.get(first_view.visible_pos).getWaveamp()+"");
// first_view.notifyDataSetChanged();
first_view.notifyItemChanged(first_view.visible_pos);
} catch (Exception e) {
}
}
回收者查看代码
if (holder.waveview.getVisibility() == View.VISIBLE) {
holder.waveview.updateAmplitude((float) all_folder.get(position).getWaveamp() / 20,true);
Log.e("wavedata1",all_folder.get(position).getWaveamp() + "");
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)