【发布时间】:2021-04-19 16:47:09
【问题描述】:
我为 Android 设备使用离子段按钮创建了一个离子段标签。下面是我的代码
<ion-content>
<ion-segment color="primary">
<ion-segment-button value="call">
<ion-label>Call</ion-label>
</ion-segment-button>
<ion-segment-button value="favorite">
<ion-label>Favorite</ion-label>
</ion-segment-button>
<ion-segment-button value="map">
<ion-label>Map</ion-label>
</ion-segment-button>
</ion-segment>
</ion-content>
下面是我得到的输出视图图像,
但我希望输出类似于下图,点击时标签背景颜色。
请帮助我如何在安卓设备上获得它。
【问题讨论】:
标签: ionic-framework