Update ProgressBar in aAdapter
I want to show a progressBar when upload files to server. I can get progress values according to written bytes of file. But I can not update the progress bar. The problem is progress bar is filled to max immediately.
xml:
In adapter I used a higher order function to get viewHolder. So in this way I can access the progress bar outside of Adapter and use it.
var holderCallback: ((RecyclerView.ViewHolder?) -> Unit) = { }
override fun onBindViewHolder(holder: FileViewHolder,...