I have a small layout that works correctly on API 19: 4.2.2, but I canβt get it to work with API 21: 5.0.1.
Here is the layout:
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" > <Button android:id="@+id/start_button" android:layout_width="match_parent" android:layout_height="match_parent" android:textStyle="bold" android:textSize="30sp" android:background="@color/start_button_bg" android:textColor="@color/start_button_text" android:text="@string/start_process"/> <TextView android:id="@+id/pro_icon" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_margin="10dp" android:layout_alignParentRight="true" android:layout_alignParentTop="true" android:textColor="@android:color/white" android:background="@drawable/pro_icon" android:text="PRO" android:gravity="center" android:textAppearance="?android:attr/textAppearanceMedium"/> </RelativeLayout>
Really simple stuff. I just want the text to be above the Button in a relative layout. I know that the relative layout looks at the views in the order in which they are added to the xml, but it does not seem to work on candy. I cannot get the TextView to render above the button. Any idea?
Greetings.
android android-layout android-5.0-lollipop
Notbad
source share