Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

AA in library with custom views #1620

Copy link
Copy link
@WarrenFaith

Description

@WarrenFaith
Issue body actions

I have a general question about the best approach for the following situation:

I am currently doing a library which I want to use as a skeleton for my app development. The skeleton should already use some other libraries like AA and include stuff that needs to be done in nearly all projects.

Now I am struggling if I should run APT on the library to create the underscore classes within the library or if I should only do that in my real app project.

With code generation in the library:
Pro:

  • I can use underscore classes like custom viewgroups within the library. So I can create layouts that uses these classes within my lib/res/layout folder
    Con:
  • I can't extend these views as the underscore classes are final
  • underscore classes are in most cases just dead code

Without code generation in the library but in the app project:
Pro:

  • I don't have dead code in form of generated underscore classes within the library
    Con:
  • I can't use custom views from the library within the library

I am not sure if I made myself clear, but how would you proceed in this setup? Any tips or additional pro/cons to consider?

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.