Does your Android Eclipse layout editor look like Figure 1? Does it show "Missing theme." or perhaps an error in the logs (perhaps something to do with "com.android.ide.eclipse.editors.layout.LayoutEditor")? These are frequent occurrences on the very latest Android SDK Tools.
 |
Figure 1 Layout Editor errors (Click for large view) |
If you're having these types of issues, the solution may be simple. See that empty dropdown on the far right? Perhaps it's not empty, but shows the Android version? Yeah, the one highlighted in Figure 2 shown below... Click on this dropdown and pick one of the options.
 |
Figure 2 Layout Editor Drop Down (Click for large view) |
Does your layout editor now look like Figure 3? If so, you're all set. If not, you'll need more than just this tip.
 |
Figure 3 Layout Editor, no errors (Click for large view) |
Why the new dropdown? We believe that it will show what a layout should look like on various versions of Android platform. So, presumably, you'll want to pick your Target SDK most of the time and if, during testing, you find a problem outside the target SDK, this drop down may help speed up layout debugging.
Happy Android Coding!
0 comments:
Post a Comment