如何将具有所有相关资源的单个活动从一个项目导出到另一个项目?

时间:2023-01-18 10:09:20

I have a Android application project with an Activity I want to export. Unfortunately, it's all resources (drawables, layouts, strings, styles) are merged with other project's resources.

我有一个Android应用程序项目,其中包含我要导出的Activity。不幸的是,它的所有资源(drawables,layouts,strings,styles)都与其他项目的资源合并。

How do I take-out the Activity I need with all dependant resources into another project?

如何将我需要的活动与所有相关资源分离到另一个项目中?

1 个解决方案

#1


1  

You will need to do this manually. There is no option in Eclipse -- or any other Android-aware IDE, AFAIK -- to "export" an activity and its resources. In Eclipse, an activity and its resources are simply a basket of files; Eclipse does not know that they have an particular relationship.

您需要手动执行此操作。 Eclipse中没有选项 - 或任何其他Android感知IDE,AFAIK - 来“导出”活动及其资源。在Eclipse中,活动及其资源只是一篮子文件; Eclipse不知道他们有特定的关系。

#1


1  

You will need to do this manually. There is no option in Eclipse -- or any other Android-aware IDE, AFAIK -- to "export" an activity and its resources. In Eclipse, an activity and its resources are simply a basket of files; Eclipse does not know that they have an particular relationship.

您需要手动执行此操作。 Eclipse中没有选项 - 或任何其他Android感知IDE,AFAIK - 来“导出”活动及其资源。在Eclipse中,活动及其资源只是一篮子文件; Eclipse不知道他们有特定的关系。