Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rajasharan/iconiclabelview

An expandable label view with icon for Android (similar to the way Gmail shows its email labels)
https://github.com/rajasharan/iconiclabelview

Last synced: 3 days ago
JSON representation

An expandable label view with icon for Android (similar to the way Gmail shows its email labels)

Awesome Lists containing this project

README

        

# Android IconicLabelView
An expandable label view with icon

## Demo
![](/screencast.gif)

## Usage

```xml

```

Or easily setup via code

```java
IconicLabelView label = (IconicLabelView) findViewById(R.id.label);
label.setIcon(getResources().getDrawable(R.mipmap.ic_launcher))
.setBackground(Color.argb(90, 128, 128, 128))
.setCornerRadius(6.0f)
.setTextColor(Color.argb(255, 200, 0, 0))
.setTextSize(16)
.setTexts("Short Text", "Very Long Text");
```

## Useful Learning Resources
* [Meaning of ascent, descent, baseline etc.](http://stackoverflow.com/questions/27631736/meaning-of-top-ascent-baseline-descent-bottom-and-leading-in-androids-font)
* [Precise Android Text Drawing](http://www.slideshare.net/rtc1/intro-todrawingtextandroid)

## [License](/LICENSE)
The MIT License (MIT)