Marjolein
Marjolein

Reputation: 131

How can a widget be created in Android Studio?

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.

Upvotes: 2

Views: 12432

Answers (2)

Cockpit Aliens
Cockpit Aliens

Reputation: 411

Hi I can see this might be an old question but. Hope this helps newbies...

I am using Android Studio 1.0.2 and has some awesome features to generate most of the stuff that if you follow many tutorials out there. Is just a click away. On android studio i'm using just right click, select new and Widget App > then every file needed is generated for you based on the size of widget you want.

Happy coding .... !

Upvotes: 5

MariusBudin
MariusBudin

Reputation: 1287

When you create a new project, just uncheck the "Create activity box"

disable activity creation

Upvotes: 3

Related Questions