Skip to content

Organize by feature - View Injection #120

Open
@varunachar

Description

@varunachar

In your blog, you mentioned that organizing the code via feature is better and I totally agree. In my case, I've split my app into different modules and each module is actually a feature. I assume that this is how you guys also work at SoundCloud so as to allow individual teams working on a feature to work independently.

On splitting the code by module, I'm not able to use Butterknife's @Bind annotations since Android doesn't mark R constants in module as static final. Hence I get a compile time for the following
@Bind (R.id.auth_et_password) EditText passwordTxt;

Error received : "Error:(44, 15) error: element value must be a constant expression"

So how do you guys inject views? Do you have a custom framework or use AndroidAnnotations framework or something else or you don't split by modules?

DISCLAIMER: I'm a Android noob.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions