Some note of Android and Eclipse

1. Avoid the EditText got focus automatically on create or the soft keyboard will show.
Add

1
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);

in onCreate. And the soft keyboard will not show automatically on view create but show when focus it we touch.
Ref: Android-防止EditText自动获得焦点

2. The Graphic Layout disappear when open xml of a layout.
Sometimes Eclipse use the default XML editor instead of the Graphic Layout design when open a layout file of Android. The solution is:
Right click on the file > Open With > Android Layout Editor.
Ref: Graphical Layout tab does not appear for some layout files into Eclipse

3. Fix Android project properties in Eclipse.
Right Click on the project > Android Tools > Fix Project Properties. And the default Android settings may add (or fix).
Ref: Android Eclipse Classpath – want to add classpath container path but eclipse won’t let me

Leave a Reply

Your email address will not be published. Required fields are marked *