每当我在
例如:
如果我使用Eclipse的属性窗口进行
android.support.v4.widget.DrawerLayout
内部的ViewGroup
中有视图时,Eclipse的自动完成开始工作异常。它不显示大多数属性。例如:
DrawerLayout -> LinearLayout -> ImageView
。
android:scale
...”,但IDE的智能感知没有显示ImageView的android:scaleType
。如果我使用Eclipse的属性窗口进行
ImageView
的操作,我会发现它只显示“View
”的基本属性(而不是ImageView
的属性):
我看到了相关的问题,比如:
但是它们已经很久没有答案了...
对于我在DrawerLayout中添加的视图(无论是TextView、EditText还是Button...),内容辅助功能都不起作用。它只建议“基本”属性。
有人知道为什么会出现这种情况或如何解决吗?
示例布局:
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical" >
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/some_image" />
</LinearLayout>
<RelativeLayout
android:id="@+id/drawer_view"
android:layout_width="240dp"
android:layout_height="match_parent"
android:layout_gravity="start" >
</RelativeLayout>
</android.support.v4.widget.DrawerLayout>