Jetpack Compose拥有一个Icon
可组合项,我可以访问一个imageVector
。请参见下面的示例。
Icon(
imageVector = Icons.Rounded.Email,
contentDescription = "Email Icon",
)
为什么我不能通过这个imageVector访问Material Icons库中列出的所有图标,例如“wifi_off”无法访问。 通过
imageVector
只能访问非常有限的库。请参考以下链接:https://fonts.google.com/icons?selected=Material+Icons&icon.style=Rounded&icon.platform=android。