setVisibility(View.VISIBLE) doesn't always work. Ideas?

前端 未结 5 1193
广开言路
广开言路 2020-12-25 14:53

I am trying to show a pair of hidden buttons (using setVisibility(View.VISIBLE), within a RelativeLayout), but it doesn\'t always work. The button

5条回答
  •  别那么骄傲
    2020-12-25 15:35

    For the record: I had this problem, tried a bunch of random stuff (thanks Alex!), and in my case what solved it was doing seekBar.requestLayout() directly after the setVisible on the very seekbar that was refusing to show.

提交回复
热议问题