Android的浏览调色板缺少的活动 [英] Android Views Palette Missing for Activity

查看:101
本文介绍了Android的浏览调色板缺少的活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,我创建了一个新的项目在Eclipse中为Android。我MainActivity是什么给了我。它在res.layout文件夹中的activity_main.xml中,我可以拖放控件到活动。

Ok i created a new project in Eclipse for Android. My MainActivity is what was given to me. It has an activity_main.xml in the res.layout folder that i can drag and drop widgets onto the activity.

我创建了一个名为SurveyActivity新的活动,但我找不到XML文件,允许我使用的调色板。

I created a new Activity called SurveyActivity but I can not find the xml file that allows me to use the palette.

没有创造活动或者是,当我做错事的时候有更多的,我需要做的就是这个工作?

Did i do something wrong when creating the activity or is there more that i need to do to get this to work?

感谢

推荐答案

我假设你创建了一个类(而不是一个活动,它可以与ADT 20来完成)和扩展活动。然后,你必须建立由你自己的布局XML。右键单击TE布局文件夹 - >新建 - > Android的XML文件。设置此布局在您的活动()你的的setContentView。
不要忘记注册该活动在你的清单。

I Assume you created a class(and not an Activity, which can be done with ADT 20) and extended Activity. Then you have to create a layout xml by your own. Right click on te layout folder -> new -> Android xml file. Set this layout in your setContentView() of your Activity. And don't forget to register that Activity in your Manifest.

这篇关于Android的浏览调色板缺少的活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆