Q:

Align a layout top of a image that is centered

I have a relative layout, inside of it is a ImageView that is centered in its parent. 
I want to add a share up to the image. If I put this attribute         android:layout_alignTop="@+id/myImage" the button will appear over the image. I want to be upper than this.

A:

Use
android:layout_below="@+id/shareId"

in your <ImageView> tag. Or
android:layout_above="@+id/myImage"

in your share's View tag depending on what works better for you. If this doesn't fix it then please post the xml and a picture of what you want/have if possible.
RelativeLayout Docs shows the different properties that can be used.

