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

前端 未结 5 1166
广开言路
广开言路 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

    This is my Solution

    setAlpha(0)
    btnName.setAlpha(0)
    

    Is working for all views like => Buttons - Images - Texts and ...

提交回复
热议问题