How mathiazhagan01/prominentcolor works
Main Components
• Library Module (ProminentColor):
– Contains the core logic for analyzing bitmaps.
• Sample Android Application Module (App):
– Contains MainActivity.java along with typical Android resource files (layouts, drawables, mipmap assets, etc.).
Architectural Patterns and Design Elements
• The project follows a modular separation where the library’s code is isolated from the sample app’s UI components.
• The callback mechanism (using ProminentColorListener) embraces asynchronous programming patterns typical in Android development.
• Mention how Gradle is used to manage dependencies (with instructions provided to include the library via JitPack), reinforcing the decoupled design.
Final Elements
• Clear labels for each component and sub-component.
• From the sample app (MainActivity) to the ProminentColor class (passing the bitmap).
• From the ProminentColor class back to the App via ProminentColorListener’s callback.