2

I recently started using Android Studio instead of Eclipse. Previously I made a widget in Eclipse and when switching to Android Studio, I could easily open it there.

However, I can't quite figure out how to create a blank widget in Android Studio. When creating a new project in Android Studio I can choose between a Blank Activity, a Fullscreen Activity or a Master/Detail Flow. Since I'm making just a widget and not an activity the first two aren't the right ones and the third one doesn't seem to be what I want either.

4

2 回答 2

5

嗨,我可以看到这可能是一个老问题,但是。希望对新手有所帮助...

我正在使用 Android Studio 1.0.2 并且有一些很棒的功能可以生成大多数东西,如果你遵循许多教程的话。只需点击一下即可。在我使用的 android studio 上,我只需右键单击,选择 new 和 Widget App > 然后根据您想要的小部件的大小为您生成所需的每个文件。

快乐编码....!

于 2014-12-21T15:26:53.160 回答
3

创建新项目时,只需取消选中“创建活动框”

禁用活动创建

于 2013-10-01T19:30:30.590 回答