Super Badge

General

Category
Free
Tag
Views
License
MIT License
Min SDK
21 (Android 5.0–5.0.2 Lollipop)
Registered
Jan 9, 2019
Favorites
2
Link
https://github.com/JP1016/SuperBadge/
See also
CircularView
Vorolay
Pinview
GoodView
MultiStateView

Additional

Language
Java
Version
v1 (Jan 7, 2019)
Created
Jan 6, 2019
Updated
Jan 9, 2019
Owner
Jithin Pariyarath (JP1016)
Contributor
Jithin Pariyarath (JP1016)
1
Activity
Badge
Generate
Download
Source code
APK file

Commercial

SuperBadge

SuperBadge Android Library Android Library to display ratings and other information in a beautiful badge!!

# Examples

# Gradle

**Step 1. ** Add the JitPack repository to your build file

allprojects {
  repositories {
   ...
   maven { url 'https://jitpack.io' }
  }
 }

Step 2. Add the dependency

dependencies {
     implementation 'com.github.JP1016:SuperBadge:v1'
 }

Maven

Step 1. Add the JitPack repository to your build file

 <repositories>
  <repository>
      <id>jitpack.io</id>
      <url>https://jitpack.io</url>
  </repository>
 </repositories>

Step 2. Add the dependency

<dependency>
     <groupId>com.github.JP1016</groupId>
     <artifactId>SuperBadge</artifactId>
     <version>v1</version>
</dependency>

Usage

XML


<com.devzstudio.superbadge.SuperBadge
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:id="@+id/badge"
    app:sb_primaryText="Netflix"
    app:sb_secondaryText="Streaming App"
    app:sb_image="https://media.netflix.com/dist/img/meta-image-netflix-symbol-black.png"
    app:sb_tertiaryText="9.5"
    app:sb_tertiaryTextColor="#FF292A"/>

Java

        //Init
        SuperBadge sb=findViewById(R.id.badge);
 sb.setImage("https://4.bp.blogspot.com/-Nyfdpymc_Lo/VkQw-nJ79mI/AAAAAAAARYg/6o9VeoTvu-I/s1600-r/logo_chrome.png");
        sb.setPrimaryText("Google Chrome");
        sb.setSecondaryText("Web Browser");

        //Callback
        sb.setOnBageClickListener(new SuperBadge.OnBadgeClickListener() {
            @Override
            public void onBadgeClick() {

                Toast.makeText(SampleActivity.this, "Clicked on Badge", Toast.LENGTH_SHORT).show();

            }
        });

Kotlin

  //Init
   val sb = findViewById<SuperBadge>(R.id.badge)
  
  //Callback
  sb.setOnBageClickListener { Toast.makeText(this@SampleActivity, "Clicked on Badge", Toast.LENGTH_SHORT).show() }
  

Contact

 For any queries mail me at emast007@gmail.com
 Feel free to customize 
 Notify us to feature your app here , free github backlink for your app