Wear TileService Layout Component accessibility

48 views Asked by At

Any way can i add accessibility to TileService layout component like LayoutElementBuilders.Text. I can't see any api to set accessibility. Anyone have idea or solution, please help me.

1

There are 1 answers

1
Yuri Schimke On BEST ANSWER

Use the semantics modifier

Text.Builder()
                    .setText("AAA")
                    .setModifiers(
                        Modifiers.Builder()
                            .setSemantics(
                                Semantics.Builder()
                                    .setContentDescription(
                                        "Hello World Text Element"
                                    ).build()
                            ).build()
                    )