Info:
This is documentation for Stream Chat Android SDK v5, which is no longer actively maintained. For up-to-date documentation, see the latest version (v7).

RTL Support

The Android SDK supports RTL configuration. The default behavior is TEXT_DIRECTION_FIRST_STRONG_LTR, which means that it follow the first strong directional character and defaults to left-to-right if finds none.

MessageInputView configuration

In case you prefer a different configuration for MessageInputView, you can select the direction of text using MessageInputView.setInputTextDirection. Example:

TEXT_DIRECTION_FIRST_STRONG_LTR TEXT_DIRECTION_FIRST_STRONG_RTL
left to right
right to left

MessageListView configuration

To change RTL support for the messages in the MessageListView you can use custom view holders with a different text direction. You can check how to implement custom view holders here

ChannelListView configuration

To change RTL support for the channels in the ChannelListView you can use custom view holders with a different text direction. You can check how to implement custom view holders here

Add Chat to my app: getstream.io/SKILL.md

The fastest way to build with Stream. Start a new project or improve an existing one. Full CLI and documentation integration out of the box.


Ask your agent:

/stream Build me a Social App with Feeds and Moderation.
/stream Any livestream calls running?
/stream Chat Android v5: <Your Question>