All Projects → nikartm → Image-Support

nikartm / Image-Support

Licence: other
Add badge with counter to ImageView Android.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Image-Support

android-tableview-kotlin
Android's missing TableView component.
Stars: ✭ 40 (-68.75%)
Mutual labels:  custom-view, android-development, android-ui
RxLoading
RxJava library for showing a loading (i.e. progress bar) state while waiting for async data with minimal effort and advanced options.
Stars: ✭ 49 (-61.72%)
Mutual labels:  custom-view, android-development, android-ui
Awesomedialog
A Beautiful Dialog Library for Kotlin Android
Stars: ✭ 163 (+27.34%)
Mutual labels:  android-development, icon, android-ui
Tableview
TableView is a powerful Android library for displaying complex data structures and rendering tabular data composed of rows, columns and cells.
Stars: ✭ 2,928 (+2187.5%)
Mutual labels:  custom-view, android-development, android-ui
github-commit-browser
A blog companion sample project that demonstrates saving UI state after process death on Android utilizing the community established 3rd party libraries
Stars: ✭ 55 (-57.03%)
Mutual labels:  android-development, android-ui
XCPullToLoadMoreListView
XCPullToLoadMoreListView-下拉加载更多ListView控件(仿QQ、微信聊天对话列表控件)
Stars: ✭ 24 (-81.25%)
Mutual labels:  custom-view, android-ui
XCArcProgressView
Android开口圆环比例进度View(高仿猎豹清理大师内存占用比例View)
Stars: ✭ 28 (-78.12%)
Mutual labels:  custom-view, android-ui
GitReposCompose
GitReposCompose is an Android application 📱 for showcasing Jetpack Compose for building declarative UI in Android. This demo app uses Github public API for fetching public repositories.
Stars: ✭ 32 (-75%)
Mutual labels:  android-development, android-ui
awesome-android-libraries
😎 A curated list of awesome Android libraries
Stars: ✭ 135 (+5.47%)
Mutual labels:  android-development, android-ui
Circular-Progress-View
A customisable circular progress view for android.
Stars: ✭ 39 (-69.53%)
Mutual labels:  custom-view, android-ui
YuanaItemSettingView
Customizable Item Setting View Android
Stars: ✭ 15 (-88.28%)
Mutual labels:  custom-view, android-ui
VideoPreLoading
Demo for video PreLoading/ PreCaching using ExoPlayer 2.13.3 in Android.
Stars: ✭ 61 (-52.34%)
Mutual labels:  android-development, android-ui
UltimateTabLayout
A library for tab layout use with viewpager. Very useful, small
Stars: ✭ 33 (-74.22%)
Mutual labels:  badge, icon
ProgressableImageView
Change your users progress capability with ProgressableImageView
Stars: ✭ 86 (-32.81%)
Mutual labels:  imageview, custom-view
QuestionnaireView
A simple view to be able to display question and various field (Radio, EditText, checkbox ) for answers
Stars: ✭ 34 (-73.44%)
Mutual labels:  android-development, android-ui
QuadTreeAndroid
Library that helps to implement the QuadTree in android, by using splitting images
Stars: ✭ 30 (-76.56%)
Mutual labels:  android-development, android-ui
PaymentCardView
Custom Credit/Debit card view
Stars: ✭ 62 (-51.56%)
Mutual labels:  android-development, android-ui
Material-Backdrop-Android
Material Backdrop
Stars: ✭ 106 (-17.19%)
Mutual labels:  android-development, android-ui
floating-layout-android
Floating Layout library for Android
Stars: ✭ 55 (-57.03%)
Mutual labels:  android-development, android-ui
Einsen
🎯 Einsen is a prioritization app that uses Eisenhower matrix technique as workflow to prioritize a list of tasks & built to Demonstrate use of Jetpack Compose with Modern Android Architecture Components & MVVM Architecture.
Stars: ✭ 821 (+541.41%)
Mutual labels:  android-development, android-ui

Maven Central Android Arsenal

ImageBadgeView

Library to add ImageView (ImageBadgeView) with a badge like notification count.

Download

Add to gradle root:

allprojects {
  repositories {
    mavenCentral()
  }
}

After migrating to MavenCentral, use Groove:

implementation 'io.github.nikartm:image-support:2.0.0'

Or Kotlin DSL:

implementation("io.github.nikartm:image-support:2.0.0")

Or take a different approach

Old way (deprecated):

implementation 'com.github.nikartm:image-support:$LAST_VERSION'

Screenshots

BarcodeInfo Screenshots

How to use?

Adjust the xml view More examples.:

<ru.nikartm.support.ImageBadgeView
    android:id="@+id/ibv_icon2"
    android:layout_width="80dp"
    android:layout_height="80dp"
    android:layout_marginTop="30dp"
    android:layout_gravity="center"
    android:padding="10dp"
    app:ibv_badgeValue="100"
    app:ibv_badgeTextSize="12sp"
    app:ibv_fixedBadgeRadius="15dp"
    app:ibv_badgeTextStyle="bold"
    app:ibv_badgeTextColor="#ffffff"
    app:ibv_badgeColor="#00ACC1"
    app:ibv_badgeLimitValue="false"
    android:src="@drawable/ic_shopping_cart" />

Or programmatically:

imageBadgeView.setBadgeValue(27)
        .setBadgeOvalAfterFirst(true)
        .setBadgeTextSize(16)
        .setMaxBadgeValue(999)
        .setBadgeTextFont(typeface)
        .setBadgeBackground(getResources().getDrawable(R.drawable.rectangle_rounded))
        .setBadgePosition(BadgePosition.BOTTOM_RIGHT)
        .setBadgeTextStyle(Typeface.NORMAL)
        .setShowCounter(true)
        .setBadgePadding(4);

Change the position of a badge on view:

app:ibv_badgePosition="bottom_right"

Use the custom badge background:

app:ibv_badgeBackground="@drawable/rectangle_rounded"

Example the custom background - rectangle_rounded.xml:

<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">

    <solid android:color="#ea5444"/>
    <corners android:radius="24dp"/>

    <stroke
        android:width="1dp"
        android:color="#f5f5f5"/>
</shape>

License

Copyright 2018 Ivan Vodyasov

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].