mirror of
https://github.com/material-components/material-components-android.git
synced 2026-02-20 08:39:55 +08:00
Setting layoutDirection on TextViews to the direction of the View locale is necessary to ensure that text on chips is rendered correctly in RTL mode. Previously, it would default to LTR mode and then not get set with proper paddings until you interact with a chip to invalidate the layout. Before (RTL): https://surbhimadan.users.x20web.corp.google.com/www/textrtl_before.mp4 After (RTL): https://surbhimadan.users.x20web.corp.google.com/www/textrtl_after.mp4 Verified no changes to LTR. PiperOrigin-RevId: 210560864