哪里是增加一个新的preference屏幕的Andr​​oid 0.4.0工作室的选择吗?屏幕、工作室、preference、Andr

2023-09-06 02:44:49 作者:青龙偃月

Android Studio 0.4.0

您好,

我想添加一个新的preference屏幕在Android的工作室。但是,我找不到菜单选项来做到这一点。

I want to add a new Preference Screen in Android Studio. However, I cannot find the menu option to do it.

在Eclipse中,你会右键点击资源目录|新的XML文件|资源类型(preferences)

In Eclipse you would right click the resource directory | New xml file | resource type (preferences)

然而,当我尝试做这在Android的工作室,没有资源类型 preferences

However, when I try and do this in Android Studio, there is no resource type preferences.

我必须手动现在要做到这一点?

Do I have to do this manually now?

非常感谢您的任何建议,

Many thanks for any suggestions,

推荐答案

在preference选项不存在了。您将需要右键点击 RES - > - > Android的资源文件并选择资源类型为在下拉菜单中XML 。然后,你将需要手动添加布局preference XML。

The preference option doesn't exist anymore. You will need to right click the res->new->Android resource file and choose the resource type as xml in the dropdown. Then you will manually need to add the layout for preference xml.