这里是我的代码:ChildView在过去的RelativeLayout无法看到当API> 20
<?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:text="button"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#ffffff"
/>
<TextView
android:text="right"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
/>
</RelativeLayout>
当API> 20,TextView的是盖的按钮,如何解决它,如果第一个孩子?是一个TextView,它不会发生。它在android中的错误?
下工作的很好? – jemy
添加屏幕截图你要如何? –
我的声望低于10,所以我无法上传图片。如果您将我的代码复制到布局文件夹中,并选择低于21的预览api,您将得到它 – jemy