All Questions
Tagged with visibility android
622
questions
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 ...
0
votes
1
answer
807
views
Changing visibility of button in viewholder of recyclerview (cardview is used)
This question is already answered but not for cardview I guess, I have already gone through most answers and experimented with them still my problem is not solved.
I have a recyclerview with adapter ...
0
votes
1
answer
714
views
How to get overflow visible working on an image with flex on Android with React Native V0.61 and Expo
I'm using React Native 0.61 with Expo SDK 37 which should support overflow visible as stated in the docs (https://reactnative.dev/docs/image-style-props#overflow). Nevertheless I can't get this to ...
0
votes
1
answer
601
views
The App menu bar has disappeared after upgrading to Android Studio 3.6.3
After upgrading to Android Studio 3.6.1 the Menu Bar and all the Images in my app disappeared. I did not make any changes to these items. All the Images have become gray boxes.
This is the menu xml:
...
1
vote
1
answer
132
views
How to handle ConstraintLayout horizontal & vertical with view.GONE
already use vertical and horizontal chain in constraint for handle visibility gone. But they are not enought for the thing i want to do.
I need to set a view like this example:
1 2
3 4
5 6
And, for ...
0
votes
1
answer
806
views
Show/Hide BottomNavigationView for specific fragment
In my android application, I want the bottom menu bar to disappear when the user focuses the SearchView (this also pops the soft keyboard up). When the SearchView loses focus, I want to show the ...
0
votes
1
answer
377
views
Problem with setting visibility of cardView in recyclerView
Hello I have a problem with setting the visibility of the cardView part.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout(..........)>
<androidx.cardview.widget.CardView
...
0
votes
1
answer
56
views
Flag from AsyncTask class doesn't work properly in main class
I've created some lines of code which are supposed to switch to the next activity if connection is set without any exceptions. But if there are some exceptions, it should make "Error!" toast and not ...
4
votes
2
answers
1k
views
Android textview blinking after changing its visibility using animation [duplicate]
I have some views in the constraint layout. I used animation to reveal and hide the view. When the view is GONE, it blinks for a second and become visible and then gone.
view.animate()
....
1
vote
1
answer
260
views
What's good approach, InflateView/ removeView OR setting Visibility.GONE?
I've got a fragment with a view having a skeleton view on it. Skeleton/Shimmering view is shown only once when data is in the loading state and then it is hidden. I'm using that fragment in ViewPager2....
5
votes
3
answers
15k
views
If a binding adapter provides the getter, check that the adapter is annotated correctly and that the parameter type matches
I have a little problem with databindig in Android.
I want to set an ImageView's visibility through databindig, and I think I have done everything that can be found on Android blogs in connection with ...
0
votes
1
answer
296
views
How to detect to view visibility(80% or so) in a recycler view like Youtube Autoplay news feed plays video when ~80 is visible
How to detect to view visibility(80% or so) in a recycler view like Youtube Autoplay news feed plays the video when ~80 is visible. And the video playback stops on a scroll and starts to play on idle ...
1
vote
1
answer
457
views
How can I keep track of visibility of my text view in each page in a viewpager2?
So this is my code. I am trying to create what looks like a PPT slideshow of images with their title and description in my application.
I have the below code and I am stuck on how to allow the user ...
0
votes
1
answer
168
views
Hide Button from RecyclerView from outside activity
I have created a chat app that uses RecyclerView in order to create the messages.
The activity where all of the chat actions are is called ChatActivity.
In some cases, the RecyclerView creates a ...
0
votes
1
answer
223
views
Using RemoteViews to set Visibility of widget button
I've got a widget with one button which I want to display as either Green, Amber or Red - I need to be able to change from one to another programmatically after the widget is loaded. I have tried a ...