自定义组件无障碍功能

让屏幕阅读器能够访问您的界面。


In this Kotlin file, I have a custom UI component (Compose or View).
Add the necessary code to make it accessible to screen readers.
Ensure proper use of accessibility events and provide relevant content descriptions or labels.
Implement state descriptions if the component has different states.

$CURRENT_FILE