iOS的SegmentedControl相当于机器人 [英] iOS SegmentedControl equivalent in Android
本文介绍了iOS的SegmentedControl相当于机器人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
什么是的iOS是一个很好的Android模拟 UISegmentedControl
?
What is a good Android analog of iOS's UISegmentedControl
?
推荐答案
我刚写了一个类似的实现在这里:<一href="https://github.com/makeramen/android-segmentedradiobutton">https://github.com/makeramen/android-segmentedradiobutton
I just wrote a similar implementation here: https://github.com/makeramen/android-segmentedradiobutton
它覆盖,而不是单选按钮RadioGroup中并不会覆盖的OnDraw方法,以便XML的造型仍然有效。
It overrides RadioGroup instead of RadioButton and doesn't override the onDraw method so XML styling still works.
这篇关于iOS的SegmentedControl相当于机器人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文