stefanjauker / badgeview Goto Github PK
View Code? Open in Web Editor NEWAn extended TextView that mimics the iOS Springboard 'badges'. It can be overlaid on any other item.
An extended TextView that mimics the iOS Springboard 'badges'. It can be overlaid on any other item.
badges not shown properly
Hi,
How can I add BadgeView to TabLayout child view ?
Hi there,
BadgeView can't work with RecylerView item.
The badge view will 'dancing' when I scroll the RecylerView.
Any suggestion?
How to add BadgeView to actionbar home icon or logo
Could you please add animations to badgeview like here:
Animation should be possible when badge count increases or decreases as well.
I add the badge to a textview,and the textview disappeared?
What happened?
<ImageView
android:id="@+id/iv"
android:layout_width="130dp"
android:layout_height="130dp"
android:layout_alignParentTop="true"
android:layout_marginTop="100dp" />
imageView = (ImageView) findViewById(R.id.iv);
badgeView = new BadgeView(this);
badgeView.setTargetView(imageView);
badgeView.setBadgeCount(30);
When I add setTargetView as blow, the target view will not be displayed.
<TextView
android:gravity="center"
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="wrap_content" />
If you don't have enough time, I can help you to fix it.
holder.badge.setBackground(20, Color.parseColor(k.hexInkiveTeal));
20 or any other value - all produce same radius
220 ViewGroup.LayoutParams parentlayoutParams = target.getLayoutParams();
222 badgeContainer.setLayoutParams(parentLayoutParams);
spelling issue
when I tried to modify your source code for my project it came out to be a complie error.
Hope you can fix it
I have a count of element with the badge, but when I deleted the all elements the bagde is still with the number 1. But if I close the app and re open The badge dissapear (reset to 0).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.