Skip to content

Tag: android-studio

Change text in button

I need to make it so that if a user clicks on button_apple and doesn’t click on it for 3 seconds, its text becomes so superfluous. And if anyone knows why my text changes in button_apple, but not in button_cherry. Tell me, please. Answer You’re setting the listener on your apple button. The cherry…

How to Visible/Invisible using OnClickListener?

I am working on FAQ page I don’t want to use Expandable list view and stuff. So I set 2 TextViews(1 for Question and 1 for Answer) and made one clickable. The above image shows when the first textview mfaq is clicked it sets second one mAns to visible. The below code works well to Set the mAns textview …