Ad

LabelsView: Android label selection control

LabelsView is an Android library for creating customizable label lists with various selection types and configuration options.
Screenshot of donkingliang/LabelsView homepage

LabelsView is an Android library providing a customizable label list view. It enables developers to display a list of labels with configurable selection behaviors such as single selection, multiple selection, and disabling selection. The library supports various customization options including label styling, layout, and behavior. It utilizes standard Android views and provides a flexible API for integration into different applications.

LabelsView distinguishes itself through its flexible configuration options for label appearance and behavior, offering granular control over selection types, layout, and styling. It supports dynamic data binding and provides clear APIs for handling user interactions. The library's attribute-based customization simplifies integration and offers a consistent developer experience.

  • Selection Types: Supports single selection (with/without revoking), multiple selection, and disabling selection.
  • Customization: Offers extensive customization options for label appearance (background, text, padding, size) and layout (rows, columns, gravity).
  • Data Binding: Can display any type of data, not limited to strings, using a LabelTextProvider.
  • Event Handling: Provides listeners for label clicks, long clicks, and selection changes, with support for intercepting selection events.
  • Flexibility: Offers options to set the number of selectable items (min/max) and to disable manual selection via a 'indicator' mode.

LabelsView is a well-established library with a consistent release history and active maintenance. The code is well-documented with clear examples and provides a good level of stability. The author actively addresses issues and the community support is available through the provided blog.

LabelsView is beneficial for Android developers who need a versatile and customizable label selection UI. It's ideal for scenarios requiring users to choose from a list of options, such as filtering, tagging, or selecting categories. It provides a user-friendly and flexible solution compared to building a similar component from scratch.

Languages:
Summarize:
Share:
Stars
1,025
Forks
157
Issues
18
Created
9 years ago
Commit
3 years ago
License
APACHE-2.0
Archived
No
Updated 16 days ago

Similar Repositories