2 u013936727 u013936727 于 2016.01.21 17:45 提问

RadioButton上添加BadgeView显示消息数量时,RadioButton无法显示

RadioButton代码:
android:id="@+id/radioButton_yiwancheng_mine"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:button="@null"
android:drawablePadding="5dp"
android:drawableTop="@drawable/selector_yiwancheng"
android:gravity="center"
android:paddingTop="5dp"
android:text="已完成"
android:textColor="@color/selector_textcolor_wode"
android:textSize="14sp" />

BadgeView代码:
BadgeView badgeView_yiwancheg = new BadgeView(getActivity());
badgeView_yiwancheg.setTargetView(radioButton_yiwancheng);
badgeView_yiwancheg.setBackgroundResource(R.drawable.informationcount);
badgeView_yiwancheg.setBadgeCount(1);

    效果图:![图片说明](http://img.ask.csdn.net/upload/201601/21/1453369420_924757.png)

    求解决!

1个回答

devmiao
devmiao   Ds   Rxr 2016.01.21 18:00
已采纳
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!