Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

0 votes
2 answers
107 views

How can i eliminate Empty spaces in recyclerView when trying to hide cards with null properties?

Empty spaces in recyclerView when trying to hide cards with null properties Hi, i'm new here. So this is my first question. I am trying to use the google Books API for a task and when I implement ...
Leo Rodenas'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
2 answers
242 views

View layout that are initially hidden, then onclick will make view visible, and vice versa(Android)

I have a constraint layout visibility that are initially set to GONE expandableLayout.setVisibility(View.GONE);. I want to make the view to be visible when 'setOnClickListener' are issued. Then, when ...
aizan qamia's user avatar
0 votes
3 answers
3k views

How to set the visibility of a view after recyclerview becomes empty

I'm trying to dynamically set the visibility of a view which is in the same fragment as the recyclerview to invisible when the recyclerview becomes empty.The problem is that i'm making the deletion of ...
Tiberiu Paduraru's user avatar
0 votes
1 answer
670 views

Changing textview visibility in android studio

I want to click to hide or unhide a textview using android studio. If it is visible, one click will make it invisible. If it is invisible, one click will make it visible. Currently, only half of the ...
Teaspoon's user avatar
-1 votes
2 answers
1k views

Set Visibility not working on Image View

Why is my imageView not becoming visible with the checkingBalance = $1200 or more? I have it set to invisible in the XML file. I essentially want the ivArrow ImageView to only appear visible IF my ...
cormeistro's user avatar
0 votes
0 answers
861 views

Custom media player in android

I am trying to make a custom media player where when ever the music start a loader will start and when the music is paused or ends the the loader goes invisible .This is what i am trying to get when ...
SAVVY's user avatar
  • 55
0 votes
2 answers
583 views

CardView background changing when changing visibility?

I have to show the CardView when taping the Tap to edit text TextView and tapping outside will hide the CardView. I have tried to switch CardView background to transparent and white for doing that and ...
Stella's user avatar
  • 1,817
1 vote
2 answers
685 views

Android Studio, setting text visibility based on int value from another activity

I'm trying to set TextView visibility in one activity based on an integer value from another activity. Ideally, I am trying to set the value of imgID as an int, and depending on the integer value, ...
Matt's user avatar
  • 81
4 votes
4 answers
96k views

how to set visibility options of android.widget.textview

had FC issues with this private TextView msg, NameOut, DateOut; msg = (TextView) findViewById(R.id.txtviewOut) ; down the line... (problem lies here) msg.setVisibility(View.INVISIBLE);//set ...
user avatar