Top "Android-relativelayout" questions

Android layout that displays child views in relative positions to each other or to the parent view.

Why do I get white space on top and on the bottom of my ImageView in my RelativeLayout?

I am using a relativelayout to overlay to images. On all screen sizes so far that I have tested (from 2.7 …

android android-linearlayout android-relativelayout
Is there a way to offset a view from center?

I'm trying to possition my button not exactly in center, but let's say in the 2/5s of the screen height, …

android android-layout android-view center android-relativelayout
What's the difference between alignBaseline and alignBottom in Android?

I tried both to align a few TextView objects and they gave me the same results. What exactly is the …

android android-relativelayout
How can I align an element to be in center of and above another element in relative layout?

Here's a picture so you can understand what I want: I have this green element already set up in my …

android android-layout alignment android-relativelayout
Is there a way to fill parent minus a fixed number in Android RelativeLayout?

I have an ImageButton that I want to fill its parent RelativeLayout container for its width but minus a few …

android android-relativelayout android-imagebutton fill-parent
Android RelativeLayout and height of wrap_content?

I am trying to make a selection ListActivity, similar to the one used to add shortcuts to the launcher screens. …

android android-layout listactivity sticky-footer android-relativelayout
How to show/hide grouped views in Android?

I want to create an activity such as mentioned in photo... as soon as I press the maximize button I …

android android-relativelayout visibility android-view show-hide
How to center a view using RelativeLayout?

I wanted to know how to center a View between two other views (or between a view and the parent …

android android-layout android-relativelayout
Can't resize a RelativeLayout inside a ScrollView to fill the whole screen

I am having a weird issue that I am not sure how to fix. I have a RelativeLayout inside a …

android android-layout android-scrollview android-relativelayout
Set the width of relativelayout 1/3 the width of the screen?

I have a layout like below. Now, I don't want to set the width of relative layout to fixed 240 dp. …

android android-layout width android-relativelayout