简体   繁体   中英

I dont see the commands window in eclipse - Java Android

Im using eclipse (Win7 if its matter) and when I write something I never see the commands window. For example, When I type: " android: " it should to open me a window with possible commands such as "text, "textSize", and its not show nothing.

What should I do to fix it? Thanks in advance.

The code:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context="com.example.firstproject.StartingPoint" >


    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text
          />


</RelativeLayout>

The text "android:text" its where I tried to open the commands window, without sucess...

The Java Proposals may have been turned off for some reason. In Eclipse, find the following in the menus:

  1. Window
  2. Preferences
  3. Java
  4. Editor
  5. Content Assist
  6. Advanced

Then check the boxes labelled Java Proposals and hit Apply.

You can see the official Eclipse documentation for Content Assist here: http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Freference%2Fpreferences%2Fjava%2Feditor%2Fref-preferences-content-assist.htm

EDIT: Summarizing the comments below

Failing this, some other things you can try:

  • Clean the project ( project -> clean ) and restart eclipse
  • Test to see if it is only happening in that one class. If so, you can try creating the class again

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM