问题描述
我是新来的Android,我学的是抽屉式导航栏例如,从谷歌 http://developer.android.com/training/implementing-navigation/nav -drawer.html
I am new to Android, I studied the navigation drawer example from Googlehttp://developer.android.com/training/implementing-navigation/nav-drawer.html
我进口和在eclipse(ADT),运行这个例子很好,但有一个关于布局文件,该文件是一个问题:
I imported and run this example well in eclipse(ADT), but there is one question about the layout file which is:
<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">
<!-- As the main content view, the view below consumes the entire
space available using match_parent in both dimensions. -->
<FrameLayout
android:id="@+id/content_frame"
android:layout_width="match_parent"
android:layout_height="match_parent" />
.........
</android.support.v4.widget.DrawerLayout>
通常,当我preSS Ctrl +空格键,Eclipse会显示一个内容辅助列表中,但是当我想这样做对的FrameLayout的layout_width属性,我找不到它,帮助列表。难道任何一个可以告诉我如何使它显示在帮助列表?
Usually, when I press CTRL+SPACE, Eclipse will show a content assist list, but when I want to do it for Framelayout's layout_width attribute, I can not find it in that assist list. Could any one tell me how to make it shown in assist list?
感谢
推荐答案
在使用支持包窗口部件,这是一个常见的场景(一个奇怪的一个了)。
When using support package Widgets this is a common scenario (a weird one too).
在这里,您使用, android.support.v4.widget.DrawerLayout
,因此该问题。正巧我很多时间。
Here you using, android.support.v4.widget.DrawerLayout
and hence the issue. Happened with me a lot of time.
您也可以尝试几个上面提到的选项here.
You can also try couple of options mentioned here.
这篇关于在ADT使用Drawerlayout时所显示的选项列表中没有layout_width属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!