maven {url "https://jitpack.io" }
compile 'com.github.loperSeven:PriceTextView:1.0.2'
<com.loper7.pricetextviewlibrary.PriceTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/colorAccent"
android:textSize="14sp" />
tv_none.setText("¥599.999万元");
tv_none.setText(3.0f,"¥599.999万元");
tv_normal.parsePrice("500.1").show();//已标注过期 不推荐使用
tv_symbol.parsePrice("599.34").showSymbol("¥");//已标注过期 不推荐使用
tv_unit.parsePrice("599.56").showUnit("元");//已标注过期 不推荐使用
tv_sau.parsePrice("199.56").showSymbol("¥").showUnit("元");//已标注过期 不推荐使用
喜欢的话可以给个star,非常感谢。欢迎提出issues,有其他需求也可以告诉我,不定期查看更新~
感兴趣的话可以下载demo查看代码,很少的200行,简单易懂。