开发者

Android Graphical Layout Editor in eclipse can't see my custom class

I have created a new class that extends the RelativeLayout and when viewing this using the Grahical Layout editor,开发者_如何学编程 I always see this error:

The following classes could not be found: - eg.package.StripedBackgroundLayout

Has anyone experience this before and how to resolve it please?

I'm using ADT 12.0.0


Yes, you currently cannot resolve this. The Graphical Layout Editor is not equipped to handle custom classes at the moment. It can be achieved with some hefty modification, but it isn't worth the time. It will be included in later Graphical Layout editor updates.


Another funny thing about eclipse is that, when I we open the graphical layout view for the first time it shows your custom view's when you clear the project.. till any modification in layout, then you just need to clear it again.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜