【发布时间】:2015-08-21 11:18:54
【问题描述】:
我刚开始使用新的 android.support.design 库。当使用 XML 编辑器中的任何小部件时,我停止收到 XML 自动完成建议!
例如,
<android.support.design.widget.CoordinatorLayout
android:id="@+id/header_root"
android:layout_width="match_parent"
android:layout_height="200dp">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/primary_dark" />
<android.support.design.widget.FloatingActionButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|right"
android:src="@drawable/ic_action_add"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_marginTop="56dp"
app:fabSize="normal"
app:layout_anchor="@id/header_root"
app:layout_anchorGravity="bottom|right|end" />
</android.support.design.widget.CoordinatorLayout>
所有标签都不会显示自动完成弹出窗口,比如当我开始输入“android:i”时没有弹出窗口出现,我得到的唯一建议如下图所示。
我已经尝试清理我的项目,重新启动电脑,重新启动 Android Studio.. 没有任何工作!
【问题讨论】:
-
这里一样,使用自定义库时xml自动完成不起作用
-
您解决了这个问题了吗?
-
不幸的是,我还没有。支持库仍未填充。
-
相关错误报告:Issue 61844: Autocomplete stopped working。请加注星标,以便他们解决问题。
-
@Varun haha 至少我们可以很高兴地说今天的 AS 比当时的第一个版本有了飞跃
标签: android android-studio autocomplete