【问题标题】:Single chip with multiple options in androidandroid中具有多个选项的单芯片
【发布时间】:2021-01-31 16:48:57
【问题描述】:

我正在尝试创建一个类似于 google play book 的芯片。

具有与此类似的行为:

我是否需要创建自定义类来扩展 Chip 或 ChipDrawable?

【问题讨论】:

  • 芯片是单动作还是多动作?
  • 多个动作。

标签: java android kotlin android-chips


【解决方案1】:

是的,如果您希望它在 Chip Group 中工作,您需要创建自定义 View 以扩展 Chip 的行为。 你也可以检查Toggle Button,看起来你可以使用MaterialButtonToggleGroupFlow来自constraintLayout

【讨论】:

    猜你喜欢
    • 2019-09-11
    • 1970-01-01
    • 1970-01-01
    • 2020-08-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-12-25
    相关资源
    最近更新 更多