All Questions
Tagged with visibility android
622
questions
0
votes
2
answers
39
views
inner recyclerview inside holder cuts cut
I have the following XML layout -
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/...
1
vote
1
answer
6k
views
How to hide/display specific RecyclerView item?
I have a contacts list RecyclerView, where the first item (position 0) holds the user's details. When the search icon in the toolbar is pressed, I want that entry to be hidden from the user.
I've ...
0
votes
1
answer
842
views
Custom visibility xml params
I want to create a new xml parameter for one of my custom views to handle the visibility of something within it. I can do it other ways of course, but I would like to do it in a way that I can use ...
0
votes
1
answer
770
views
How to set progress bar visibility to invisible once data comes from a server and appears on listview?
I want to set the progress bar visibility to invisible once data comes from my server and display in a listview.
Here is my code
public class MainActivity extends AppCompatActivity implements ...
0
votes
1
answer
57
views
how to change visibility edittext in mainactivity from alertdialog
I have designed an alertdialog of which when the user press the save button
MainActivity
public void openDialog(View view) {
RegDialog regDialog = new RegDialog();
regDialog.show(...
6
votes
1
answer
3k
views
How to remove the launcher icon in android 10(Q)
Before API 29, we can remove the launcher icon in the device by removing
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category ...
0
votes
1
answer
445
views
android nested RecyclerView issue: View.GONE doesn't instantly resize/redraw nested RecyclerView
I have an app that would benefit from a recyclerView nested in a recyclerView.
The issue I have though is that when I remove a textView outside on the recyclerView, the inner recyclerView doesn't ...
0
votes
2
answers
85
views
Android Kotlin app not displaying or hiding an image based on received bluetooth data
My app connects via bluetooth to an Arduino, that has an LED on board that is controlled by a button. The LED is either on or off. And when that state changes, the Arduino will transmit a 1(on) or 0(...
0
votes
1
answer
52
views
Hot to set Action Bar item visibility as soon as activity starts?
When Activity Restarts , everything works correctly, but I want to set menu item visibility when Activity starts.
private boolean userIsCompany = false;
@Override
protected void onCreate(Bundle ...
0
votes
0
answers
24
views
statically setting image not displaying
I have an ImageView that when the activity starts needs to be hidden. Depending on the result of some other function I want to statically give it an image and set it to visible.
static boolean ...
2
votes
1
answer
42
views
ProgressBar does not appear in WebView located in Fragment ,how to show ProgressBar in WebView android?
Whenever, I enter the fragment, I am shown a blank space for a few seconds, then the webpage in the WebView shows up. It seems that the ProgressBar does not show.
Here's my XML file for the Fragment ...
2
votes
3
answers
603
views
how to save Visibility android
i tried to save the Visibility state of my cardviews, at first i have the views as gone, but if the user pres the button the cardview will show up. Could someone help me and tell me how i could store ...
1
vote
1
answer
200
views
Snapchat like Add Friend button in recycler view android
I am trying to create a Snapchat Add Friend button like this -
Below is the code for my XML layout of the recylerView item -
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="...
0
votes
1
answer
182
views
Visibility of the root of an inflated layout is changing with the child's visibility
I have an odd error/side effect happening with my Android app I am doing right now for a school project.
The end goal is supposed to be a view that gets revealed after pressing a button at the top of ...
0
votes
1
answer
4k
views
Why is DataBinding View Visibility not working
I have the following DataBinding setup, but whenever "isPrivate" is true, the visibility stays View.GONE
layout.xml
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:...