在下面的XML中,我在
我仍然收到AAPT错误:找不到属性android:boxedEdges。
android:boxedEdges="all"
处出现错误。我已经尝试删除此行但未解决问题。我仍然收到AAPT错误:找不到属性android:boxedEdges。
<?xml version="1.0" encoding="utf-8"?>
<androidx.wear.widget.BoxInsetLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/dark_grey"
android:padding="@dimen/box_inset_layout_padding"
tools:context=".MainActivity"
tools:deviceIds="wear">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="@dimen/inner_frame_layout_padding"
android:boxedEdges="all">
<TextView
android:id="@+id/text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="@string/hello_world" />
<Button
android:layout_width="wrap_content"
android:layout_gravity="center"
android:layout_height="wrap_content"
android:text="Press Here" />
</FrameLayout>
</androidx.wear.widget.BoxInsetLayout>
这是一个简单的Wear OS项目。我是新手,所以任何帮助或链接都将不胜感激。