Skip to main content

All Questions

Tagged with
1 vote
2 answers
388 views

Android Studio If-statement make TextView visible if invisible and invisible if visible

I am trying to make a textView invisible when pressing a button. But, if the textView is already invisible I want it to become visible. Currently I am trying sonething like this: public void ...
FilleFrella44's user avatar
0 votes
1 answer
53 views

Make display data textviews invisible until a city is searched

I set my textviews on my weather app to display the data for cities when searched on my search panel (i.e temp_out.setText(response.body().getMain().getTemp() + " ℃"););. It works quite fine ...
Richard Wilson's user avatar
0 votes
2 answers
101 views

Creating subText with visible/invisible method across TextViews

I have created two textViews that the first one is the main title and the second one is the subtext of the title. So I want to make the subtexts visibility to depend on clicking the main title. It ...
Cingen's user avatar
  • 59
0 votes
4 answers
101 views

How to set a textView to visible after an onClick event and Activity change?

I have three passages in my scrollview that need to each become visible after an onclick event on one of three buttons. I have currently set them to all invisible. And since I cannot get it to work, ...
Mohamad Ziadeh's user avatar
0 votes
3 answers
367 views

Can't set TextView to VISIBLE

I set the following to visible in my onCreate method. findViewById(R.id.noDesignsCallToAction).setVisibility(View.VISIBLE); In the XML, the view is set to visibility gone. <LinearLayout xmlns:...
Martin Erlic's user avatar
  • 5,635
2 votes
1 answer
1k views

Text View set visibility gone not working

I have a recipe app which displays quantities of ingredients, when a textview row is not used for an ingredient i set the corresponding value to 0 then in a setText method I set all textviews with ...
Ollygrov's user avatar
1 vote
3 answers
3k views

Android - TextView not showing

I have a TextView that used to show on the screen, and did what I wanted. However, I streamlined some later code that repositions it with a touch to it's parent FrameLayout. Now, the TextView (named ...
Jeeter's user avatar
  • 6,045