Projets
Voir sur GitHub
elevenetc/BadgeView
À propos
Badge view with animated effect which shows a bitmap or a text
Développement web et applicatifProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalBadgeView
Badge view with animated effect which shows a bitmap or a text.

Usage
<su.levenetc.android.badgeview.BadgeView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:badgeText="Hello!" />
BadgeView badgeView = new BadgeView(this);
badgeView.setValue(R.string.hello);
XML attributes
<attr name="badgeText" format="string"/>
<attr name="badgeBitmap" format="reference"/>
<attr name="badgeBackgroundColor" format="color"/>
<attr name="badgeTextColor" format="color"/>
<attr name="badgeTextSize" format="dimension"/>
<attr name="badgePadding" format="dimension"/>
<attr name="badgeAnimationDuration" format="integer"/>
Animations
To show values sequentially use setValues method:
Bitmap bitmapX;
badgeView.setValues(0, 1, bitmapX, 3, "How are you?");
To define partucular delay for each value use helper class BadgeView.AnimationSet:
new BadgeView.AnimationSet(badgeView)
.add("Hi!", 1000)
.add("How are you?", 1200)
.add("Im fine!", 1500)
.play();
Download
repositories {
maven { url "https://jitpack.io" }
}
//...
dependencies {
//...
compile 'com.github.elevenetc:badgeview:v1.0.0'
}
Licence
Explorer des projets similaires
Chargement…