Top "Android-relativelayout" questions

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

Android RelativeLayout below 2 views

I have a RelativeLayout like this: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="…

android android-relativelayout
Android: 2 relative layout divided in half screen

I tried many times to draw 2 Relative layout aligned horizontally and divided in half screen. I design the image with …

android android-layout android-relativelayout
LinearLayout vs RelativeLayout

What are the advantages of RelativeLayout over LinearLayout in android ? For a particular design which one would you prefer and …

android android-layout android-linearlayout android-relativelayout
Using layout_above in a RelativeLayout

Can someone explain to me why the ImageView is not appearing above the LinearLayout? <RelativeLayout android:layout_width="fill_…

android android-relativelayout
How to avoid overlap view in relative layout in android?

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_…

android android-layout android-imageview textview android-relativelayout
ImageView fills parent's width OR height, but maintains aspect ratio

I have a square image (though this problem also applies to rectangular images). I want to display the image as …

android android-layout android-imageview android-relativelayout
Android: RelativeLayout in ScrollView

I have a RelativeLayout with multiple ImageViews and when I turn around the screen, the ImageViews become disordered. So I …

android android-layout android-scrollview android-relativelayout
How to make image fill RelativeLayout background without stretching

In my Android project, I am not quite sure how to make my background image fill the entirety of the …

android background android-relativelayout
android RelativeLayout change height programmatically

I try change layout height programmatically. I have two buttons. In one button I change my layout position and second …

android android-scrollview android-relativelayout
How to get RelativeLayout working with merge and include?

I have been trying for a few days now to make my layouts more efficient by converting from using several …

android android-layout merge include android-relativelayout