All Projects → klinker24 → Android Badgedimageview

klinker24 / Android Badgedimageview

Licence: mit
Simple library for placing media type tags or text over an ImageView

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Android Badgedimageview

Vimage
A simplistic image viewer for Windows, inspired by vjpeg.
Stars: ✭ 63 (-25%)
Mutual labels:  image, imageview
Abmediaview
Media view which subclasses UIImageView, and can display & load images, videos, GIFs, and audio and from the web, and has functionality to minimize from fullscreen, as well as show GIF previews for videos.
Stars: ✭ 79 (-5.95%)
Mutual labels:  image, imageview
Davinci
An esay-to-use image downloading and caching library for Unity
Stars: ✭ 74 (-11.9%)
Mutual labels:  image
Flinglayout
This Layout provide fling dismiss effect like Twitter ImageView.
Stars: ✭ 81 (-3.57%)
Mutual labels:  imageview
Packer Centos 6
This build has been moved - see README.md
Stars: ✭ 78 (-7.14%)
Mutual labels:  image
Network Avatar Picker
A npm module that returns user's social network avatar. Supported providers: facebook, instagram, twitter, tumblr, vimeo, github, youtube and gmail
Stars: ✭ 74 (-11.9%)
Mutual labels:  image
Ariana
Provide Multiple Gradients in ImageViews and Texts. Integrate with ViewPager to change colors dynamically.
Stars: ✭ 74 (-11.9%)
Mutual labels:  imageview
Macimagesetgenerator
2个脚本文件,帮助你在Mac上,生成Xcode可使用的APP图标和启动图。
Stars: ✭ 73 (-13.1%)
Mutual labels:  image
Photok
Encrypted Photo Safe for Android
Stars: ✭ 83 (-1.19%)
Mutual labels:  image
Pixelate
Pixelate an image with canvas.
Stars: ✭ 78 (-7.14%)
Mutual labels:  image
React Images Uploading
The simple images uploader applied Render Props pattern that allows you to fully control UI component and behaviors.
Stars: ✭ 80 (-4.76%)
Mutual labels:  image
Summernote Image Attributes
Summernote plugin to edit image attributes
Stars: ✭ 78 (-7.14%)
Mutual labels:  image
Android Circular Progress
Android custom view that loads a circular progress indicator using ImageView or FrameLayout
Stars: ✭ 75 (-10.71%)
Mutual labels:  imageview
Jekyll Cloudinary
Jekyll plugin adding a Liquid tag for Cloudinary, for better responsive images
Stars: ✭ 79 (-5.95%)
Mutual labels:  image
Packer Ubuntu 1404
DEPRECATED - Packer Example - Ubuntu 14.04 Vagrant Box using Ansible provisioner
Stars: ✭ 81 (-3.57%)
Mutual labels:  image
Laravel Imageupload
Upload image using Laravel's build in function and resize it automatically.
Stars: ✭ 73 (-13.1%)
Mutual labels:  image
React Image Timeline
📆 An image-centric timeline component for React.js
Stars: ✭ 77 (-8.33%)
Mutual labels:  image
Docker Nginx Image Proxy
on the fly image cropping with gravity, resize and compression microservice
Stars: ✭ 79 (-5.95%)
Mutual labels:  image
Kirby Annotator
Kirby field for adding notes to images by pinning them to specific coordinates. Kirby 2 and 3.
Stars: ✭ 84 (+0%)
Mutual labels:  image
React Native Image Overlay
React Native's ImageBackground with overlay
Stars: ✭ 83 (-1.19%)
Mutual labels:  image

Android BadgedImageView

Screenshot

Easily add badges to an ImageView to describe its content.

Recently, in Talon for Twitter, one of my challenges was that you couldn't tell if media was a GIF, video, YouTube, etc. All the images just had the generic play button on them. This library, based off of Plaid, was my way to fix that.

Google+ uses a very similar style in their own app.

Features

Place a badge over the top of the ImageView to describe its content.

  • Use any text you like
  • Change the badge color
  • Change the placement of the badge using Gravity
  • Change the padding on the badge

Installation

There are two ways to use this library:

As a Gradle dependency

This is the preferred way. Simply add:

dependencies {
    compile 'com.klinkerapps:badged_imageview:1.0.5'
}

to your project dependencies and run ./gradlew build or ./gradlew assemble.

As a library project

Download the source code and import it as a library project in Eclipse. The project is available in the folder library. For more information on how to do this, read here.

Example Usage

Functionality can be found in the example's MainActivity. Badges on BadgedImageView can be added (or changed) from code:

badgedIv.setBadge("YouTube", Color.RED);
badgedIv.setBadge("GIF"); // default badge color is white

or they can be defined in XML layout:

<com.klinker.android.badged_imageview.BadgedImageView
    android:id="@+id/badged_iv"
    android:layout_width="match_parent"
    android:layout_height="200dp"
    android:src="@drawable/gif"
    android:layout_margin="12dp"
    android:scaleType="centerCrop"
    app:badgeGravity="start|bottom"
    app:badgePadding="12dp"
    app:badgeColor="@android:color/white"
    app:badgeText="GIF" />

Contributing

Please fork this repository and contribute back using pull requests. Features can be requested using issues. All code, comments, and critiques are greatly appreciated.

Changelog

The full changelog for the library can be found here.

License

Copyright 2016 Luke Klinker

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].