How to make Views with an Invisible attribute 'Visible' after clicking a button

后端 未结 4 605
感动是毒
感动是毒 2021-01-26 03:52

I have several Views, text views, and a button that have the android:visibility=\"invisible\" attribute. My goal is to click a button that resides above these \'invisible\' widg

4条回答
  •  余生分开走
    2021-01-26 04:25

    findViewById(R.id.ratingBar3).setVisibility(View.VISIBLE);
    findViewById(R.id.saveContinueButton3).setVisibility(View.VISIBLE);
    

    you made it invisible view invisible again.. try the above code

提交回复
热议问题