简体   繁体   English

Android:Eclipse不显示任何视图属性

[英]Android: Eclipse doesn't show any view properties

Since I updated the ADT and SDK tools and all plugins that Android delivers, Eclipse doesn't seem to support my current layouts. 由于我更新了ADT和SDK工具以及Android提供的所有插件,因此Eclipse似乎不支持我当前的布局。 As shown in this: 如下所示:

screenshot1

Eclipse won't show me any properties of any view I'm trying to edit. Eclipse不会向我显示我要编辑的任何视图的任何属性。 Furthermore as shown below, Eclipse won't show me the Android tool bar at the top of the layout/source editor. 此外,如下所示,Eclipse不会在布局/源代码编辑器顶部向我显示Android工具栏。

screenshot2

What am I doing wrong? 我究竟做错了什么? I'm definitely sure that this has something to do with the recent updates. 我可以肯定,这与最近的更新有关。

Workspace Prefs: 工作区偏好:

  • Eclipse: Kepler (Kepler Service Release 2) Eclipse:开普勒(Kepler Service Release 2)
  • ADT + SDK: 22.6.1 (v201403111859-1066720) ADT + SDK:22.6.1(v201403111859-1066720)
  • SDK Platform Tools: 19.0.1 SDK平台工具:19.0.1
  • SDK Build Tools: 19.0.3 SDK生成工具:19.0.3
  • Android: API 19 Android:API 19

I had this issue the the other day when using drawer layouts. 前几天我在使用抽屉式布局时遇到了这个问题。 It seems that eclipse is getting worse at UI design. Eclipse在UI设计上似乎变得越来越糟。 I fixed it (although more of a work around) by splitting up my linear and relative layouts into their own XML files then use 我通过将线性布局和相对布局分成自己的XML文件然后使用来修复(尽管需要更多工作)

<include layout="@layout/partial_dash_main" />

Which will insert your XML at runtime. 它将在运行时插入您的XML。 into the activity. 进入活动。 Hope that helps. 希望能有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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