This is the relative layout part of my layout:
<RelativeLayout
android:id="@+id/headLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/headbg"
android:orientation="horizontal" >
<TextView
android:id="@+id/head2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:paddingLeft="@dimen/d10dp"
android:text="@string/archive"
android:textColor="@color/white"
android:textSize="@dimen/d20sp" />
<ImageView
android:id="@+id/moreBtn"
android:layout_width="@dimen/d50sp"
android:layout_height="@dimen/d30sp"
android:layout_alignParentEnd="true"
android:layout_gravity="center_vertical"
android:paddingRight="@dimen/d10dp"
android:scaleType="centerInside"
android:src="@drawable/show_btn" />
</RelativeLayout>
On an avd that has api 19, it works perfectly. Textview is on the left end of the relative layout, while the imageview is on the right. But on an avd that has api 14, both are on the left end. Am i missing some tags for alighparentend to work or it just doesn't work on api 14?