English 中文(简体)
A. 可提用的新xml文档
原标题:A new xml file in drawable_hdpi
  • 时间:2011-06-03 02:51:20
  •  标签:
  • android

我想在可提取的“hdpi”夹中创建一个新的xml文档,但新卷宗在可提用的“hdpi”夹中出现,出现在布局中。 你能告诉我为什么?

In SDK 1.6 it is OK, but in SDK 2.2 it is not.

edit:for example in the app res/drawable_hdpi choice the drawable_hdpi folder,then right-hand button create new android xml as foo.xml,but the xml is created at the layout_hdpi folder not at the rawable_hdpi folder

最佳回答

我的猜测是,你正试图在Eclipse建立一个新的“Android XML”档案,在你可提用的“hdpi”夹上进行右.。 我能够重复你面临的问题。 当你试图这样做时,log忙的辩词可以决定,如果档案是在内部各种环境下产生的。

I tried to embed and image here to show you but SO wouldn t let me. Sorry.

The radio buttons will change the folder list beneath the "Available Qualifiers" list will change depending on which button you select. For whatever reason, there is no radio button for drawable. If you try to edit the folder by hand, your radio button selection disappears and the finish button disables, so you can t even force it to do what you want.

Really you should just copy an xml file similar to what you want to your drawable_hdpi folder manually outside of eclipse. Afterwards, just do a refresh on your res folder in Eclipse and the file will show up there. Then you should be able to edit it within Eclipse.

Hope that helps, Craig

问题回答

暂无回答




相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签