Events are performed, but changes are not visible on UI
I will describe my problem with an example. I try to change seekBar
progress using seekBar.setProgress(value). I can get progress later using
seekbar.getProgress(), but nothing changes on UI. I tried running it on in
runOnUIThread(), but it didn't work. However, Toast is visible if I print
right after the seekBar.setProgress().
Maybe somebody has had similar problem?
seekBar.post(new Runnable() {
@Override
public void run() {
//Toast.makeText(getActivity(), "Test",
5).show();
seekBar.setProgress(progress);
seekBar.postInvalidate();
DevLog.d("RABL",
seekBar.getContext().getClass().getSimpleName(),
getActivity().getClass().getSimpleName(),
progress, seekBar.getProgress(), "\n" +
"=====================");
}
});
No comments:
Post a Comment