All Questions
7
questions
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 ...
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 ...
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 ...
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, ...
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:...
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 ...
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 ...