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

All Questions

Tagged with
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/...
Alon Shlider's user avatar
  • 1,268
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 ...
George's user avatar
  • 409
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 ...
jack_the_beast's user avatar
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 ...
peter Estifanos's user avatar
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(...
Amor Laamayad's user avatar
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 ...
krishna sree's user avatar
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 ...
Slamit's user avatar
  • 515
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(...
CB Midkiff's user avatar
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 ...
Nika Chapidze's user avatar
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 ...
user avatar
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 ...
digdigdoot's user avatar
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 ...
Bas Hogeveen's user avatar
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="...
Kartik Saraf's user avatar
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 ...
G-Schmu's user avatar
  • 27
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:...
muetzenflo's user avatar
  • 5,743

15 30 50 per page
1
3 4
5
6 7
42