0
我有这个在res /布局变化右键以结束RTL布局,但布局-V17
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBaseline="@+id/txt"
android:layout_alignBottom="@+id/txt"
android:layout_toRightOf="@+id/txt"
android:text="@string/..."
android:layout_marginLeft="3dp"
android:textAppearance="?android:attr/textAppearanceSmall" />
,它告诉我layout_toRightOf改变layout_toEndOf和layout_marginLeft到layout_marginStart到从右到左的布局更好的支持。我这样做了,但由于连接,我创建了一个新的layout-v17文件夹,并创建了2个版本,每个API模式一个。
如果我理解正确,Android会根据它运行的API采取相应的布局,对不对?那么如何告诉它不要再警告我关于旧API(原始res /布局文件夹)的两个属性?