Skip to content

docs(android): add RTL Support for the Android UI Kit - #627

Open
hritika-cometchat wants to merge 4 commits into
mainfrom
docs/android-uikit-rtl-support
Open

hritika-cometchat wants to merge 4 commits into
mainfrom
docs/android-uikit-rtl-support

Conversation

@hritika-cometchat

@hritika-cometchat hritika-cometchat commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Right-to-left (RTL) docs for the Android UI Kit v6 (Kotlin XML Views and Jetpack Compose), and the other changes in UI Kit 6.3.1. Matches the release PR uikit-android #1025 (release-v6-v6.3.1 @ f9732fd1a), which includes the RTL work from #984, and the RTL developer-experience doc (D-RTL-2). Task: ENG-41248 (X1, one RTL page per UI Kit). The other kits: #618 (React, Angular), #622 (Flutter), #623 (iOS).

New page

ui-kit/android/rtl-support, under Theming after Localize, available from UI Kit 6.3.1. Same outline as the Flutter page:

  • layout direction vs language, and the android:supportsRtl requirement;
  • the global setting (UIKitSettingsBuilder.setLayoutDirection, CometChatUIKit.setLayoutDirection);
  • the per-component setting: Compose layoutDirection, Views setCometChatLayoutDirection / app:cometchatLayoutDirection, and the components that take it;
  • base components (they follow their parent, or the global setting on their own);
  • which setting wins, and common scenarios;
  • what the kit does for you: overlays, viewers, snackbars;
  • what mirrors and what doesn't, and text, digits and dates (including file sizes, recorder timers and media durations);
  • custom views and your own overlays;
  • upgrading notes.

Updated pages

  • 18 component pages: a Functionality row and a "Layout Direction" section (XML element, Views setter, Compose parameter).
  • Overview: an RTL row in the quick reference and an "Upgrading from 6.3.0" section.
  • Localize: setLocale changes the language only. New "Group Action Messages" section: the lines are translated and say "You" for the logged-in user, with all 25 string keys. isRtl stays in the API table, marked deprecated in 6.3.1 (it is kept, not removed).
  • Methods: setLayoutDirection in the UIKitSettings table, and a Layout Direction section.
  • Message Bubble Styling: the file bubble subtitle shows the sent date and the file size.
  • Troubleshooting: a new RTL section.
  • View Slots: start/end values in RTL.
  • Version 6.3.0 → 6.3.1 in the install snippets: Getting Started (all three pages), Calling Integration, Offline Support, Upgrading from v5, and the llms index. Sentences such as "6.3.0 or later" and "the first version with offline support" are unchanged.
  • llms index: an entry for the new page.
  • Kit behaviour wording: "toast" → "snackbar" where the kit shows a message (the kit now shows snackbars that follow the component's direction). Toasts in sample app code are unchanged.

Main is merged in (the 6.3.0 offline docs); the two conflicts in Conversations and Message List keep both the offline rows and the layout-direction row.

Checks

  • Every API name, class path, string key and default checked against release-v6-v6.3.1 @ f9732fd1a.
  • Compose components keep their 6.3.0 signatures, so the upgrading notes say no rebuild is needed.
  • mint broken-links: no broken links. All new anchors resolve.

Not in this PR

  • Screenshots of the components in RTL.
  • Release notes: they are in the #1025 description and reach the docs through the Changelog link.

🤖 Generated with Claude Code

New page ui-kit/android/rtl-support: layout direction vs language,
android:supportsRtl, the global setting (UIKitSettingsBuilder /
CometChatUIKit.setLayoutDirection) and the per-component setting (Compose
layoutDirection, Views setCometChatLayoutDirection / app:cometchatLayoutDirection),
which setting wins, base components, what mirrors and what doesn't, digits
and dates, custom views and overlays, and upgrading notes.

Also: a Layout Direction section and Functionality row on 18 component pages;
Localize (setLocale is language-only, isRtl removed), Methods, Troubleshooting,
View Slots and the llms index; kit "toast" wording changed to snackbar;
nav entry after Localize. Matches uikit-android PR #984 @ a4b44a10c.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mintlify

mintlify Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
cometchat 🟢 Ready View Preview Nov 26, 2026, 7:49 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

hritika-cometchat and others added 2 commits November 25, 2026 11:39
…l-support

# Conflicts:
#	ui-kit/android/conversations.mdx
#	ui-kit/android/message-list.mdx
- Bump the UI Kit version to 6.3.1 in the setup and upgrade pages.
- Localize: group action message keys, isRtl deprecated (kept, not removed).
- RTL Support: available from 6.3.1, digits for file sizes, timers and
  durations, upgrade table matches the release.
- Message bubble styling: file subtitle shows the sent date and size.
- Overview: RTL row in the quick reference and an "Upgrading from 6.3.0"
  section.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Since uikit-android d0d7c7f17 both kits show offline notices with the
kit snackbar, which follows the component's layout direction. Update the
Conversations, Message List and Offline Support pages to match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch was successfully deployed

1 active deployment
staging — 63c9bc2c Deployed Nov 26, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant