1

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.

Abu Yousuf
  • 5,729
  • 3
  • 31
  • 50

1 Answers1

1

Use the semantics modifier

Text.Builder()
                    .setText("AAA")
                    .setModifiers(
                        Modifiers.Builder()
                            .setSemantics(
                                Semantics.Builder()
                                    .setContentDescription(
                                        "Hello World Text Element"
                                    ).build()
                            ).build()
                    )
Yuri Schimke
  • 12,435
  • 3
  • 35
  • 69