【发布时间】:2017-05-20 17:50:52
【问题描述】:
我在 Android Studio 中创建了一个滚动活动,并从设置 FAB 操作的活动中删除了代码,但活动 xml 中没有匹配的属性:
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.NestedScrollView 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"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context="myactivity"
tools:showIn="@layout/activity_edit_address">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/text_margin"
android:text="@string/large_text" />
</android.support.v4.widget.NestedScrollView>
我在 Google 上找到的所有内容都说要删除 FAB XML 属性以阻止它出现,但这似乎已经过时,因为它不存在。我在哪里可以删除这个?谢谢。
【问题讨论】:
标签: java android xml android-studio