Android: Center an image horizontally based on another image (not on parent)
<p>Is there a way to center an image horizontally based on another image? Could be from xml or coded.</p>

<p>For example one button on top and another button below (i.e. android:layout_below="@+id/button1"), but centered horizontally based on the first one.</p>
