Linked Questions
30 questions linked to/from Android : Difference between View.GONE and View.INVISIBLE?
9
votes
1
answer
26k
views
what is difference b/w View.GONE and View.INVISIBLE [duplicate]
I am using a Custom View.
On the Custom View I am plotting some Graph. And also I am using TextView on my layout. When I am making this TextView VISIBLE and INVISIBLE on button click
, it is ...
-1
votes
1
answer
89
views
RelativeLayout expanding but not shrinking [duplicate]
I have a RelativeLayout that is being expanded on click by setting a LinearLayout inside to View.VISIBLE. This works fine, but as soon as I set the LinearLayout inside to INVISIBLE, the LL hides but ...
177
votes
13
answers
315k
views
How to hide a button programmatically?
I have a RelativeLayout which contains two buttons. Which are overlapped on each other.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/...
81
votes
13
answers
34k
views
iOS equivalent for Android View.GONE visibility mode
I'm developing an app for iOS and I'm using the Storyboard with AutoLayout ON. One of my view controllers has a set of 4 buttons, and in certain circumstances i would like to make the first one ...
42
votes
7
answers
79k
views
Expand and collapse CardView
What is the proper way to expand a CardView?
34
votes
7
answers
68k
views
How to stop and start a ProgressBar
I am unable to stop a ProgressBar. Its style is ProgressBarStylesmall. How can I start and stop a circular, small ProgressBar?
12
votes
2
answers
19k
views
Android: How do I put a solid color rectangle in a Layout?
I have a RelativeLayout that inflates just fine. I would like to add a solid color rectangle spanning the width of the layout at the top. I tried putting the following into my xml:
<view android:...
2
votes
6
answers
9k
views
How to remove dynamically created views on button click
public void Add_text() {
ll.setOrientation(LinearLayout.HORIZONTAL);
ll.setId(i);
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(
LayoutParams....
1
vote
3
answers
12k
views
Changing visibility of Android ProgressBar
I've a condition check to decide if the ProgressBar should appear or not. The layout looks like below where the ProgressBar is contained within a RelativeLayout:
<RelativeLayout
android:id="@+...
1
vote
3
answers
2k
views
AdMob does not refresh the ad after hiding/showing AdView
I would like to add AdMob ads to my application, but I have a problem with showing/hiding them depending on the internet connection status of the device. When I turn on my device with WiFi turned on ...
0
votes
2
answers
2k
views
Android force LinearLayout to resize views after view removal
I 've a LinearLayout with 2 views, view A which takes some vertical space, and view B which takes the rest of the layout.
<LinearLayout
android:id="@+id/ly2"
android:layout_width="...
0
votes
1
answer
2k
views
working on Admob Banner in android
I'm working on app which is tutorial based app.
I want to show my tutorials as well as banner ad at bottom
I want to show tutorial on whole screen until ad is not loaded as soon as ad loads
i want my ...
0
votes
1
answer
1k
views
I would like to Gone the button
In xamarin Android we have "Visibility.Gone;" to hide the button. In Xamarin Forms we have IsVisible="{Binding State}", but this only will make view invisible, space remain there.
Please let me know ...
0
votes
3
answers
961
views
How to make view not to take any space but still be visible in Android RecyclerView?
I have a RecyclerView and two types of views(headers and item -> these are the same class objects, but contains different data). I want a header to be visible but it should take no space (something ...
0
votes
3
answers
838
views
Showing/Hiding ImageView in RelativeLayout
I have a Relative Layout that has two children, an ImageView and a ProgressBar. While the image for the ImageView is loading I want to show the spinning progress bar, and once the image has finished I ...