takimafr / androidkickstartr

AndroidKickstartR helps you to quickly create a well configured Android application using the most popular libraries. It creates and configures your project for you. Just focus on code!
http://androidkickstartr.com
Other
608 stars 116 forks source link

Generated main activity 'EActivity' annotation to support AA 2.7+ #105

Closed full-of-foo closed 10 years ago

full-of-foo commented 10 years ago

Current generated main activity annotation is:

@EActivity(R.layout.activity_main)

As per the following, https://github.com/excilys/androidannotations/wiki/Library-projects ,it should be:

@EActivity(resName="activity_main")

jeremiemartinez commented 10 years ago

Well, actually in AA you can do both, either by name or by id. I prefer by id since it will better support refactoring. I also know for sure that resName has been introduced in AA for library project especially.

full-of-foo commented 10 years ago

@jeremiemartinez Hmmm strange, I am indeed seeing now that both are supported. When I initially generated my project (using the default Eclipse generation rather than Mvn or Gradle) I did the following:

However, since your reply and after attempting to change the annotation back to "@EActivity(R.layout.activity_main)" it now simply works!?

full-of-foo commented 10 years ago

I'm sure this can be closed but it may be worth keeping around incase others encounter a similar issue? :smiley:

jeremiemartinez commented 10 years ago

Sure thing. @a-thomas ?

a-thomas commented 10 years ago

We will close this issue and re-open a new one if somebody else encounters this problem. Thanks guys for the feedback

full-of-foo commented 10 years ago

:+1: Thanks guys