为Android视图添加徽章:Android ViewBadger

jopen 12年前
     <p>这个开源项目提供了一种简便的方式,能够在运行期对任意给定的Android view添加徽章, 而不必配合它的布局。</p>    <p><img title="Demos" alt="为Android视图添加徽章:Android ViewBadger" src="https://simg.open-open.com/show/d0dddcb295725b638833420739222245.png" width="240" height="427" />   <img title="ListAdapter" alt="为Android视图添加徽章:Android ViewBadger" src="https://simg.open-open.com/show/0b9a373d30dce6a29a2fea36f2fd1f42.png" width="240" height="427" />   <img title="Layout Tests" alt="为Android视图添加徽章:Android ViewBadger" src="https://simg.open-open.com/show/c81339386f4cfbc2ae18d950068f9181.png" width="240" height="427" /></p>    <p>使用方法:</p>    <pre class="brush:java; toolbar: true; auto-links: false;">View target = findViewById(R.id.target_view); BadgeView badge = new BadgeView(this, target); badge.setText("1"); badge.show();</pre>    <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1324945839124" target="_blank">http://www.open-open.com/lib/view/home/1324945839124</a></p>