This repository allows you to check the result after completing the Compose Chat Tutorial.
Not using Compose yet? Check out the tutorial repo of our XML based UI components instead.
The project is pre-configured with a shared Stream account for testing purposes. You can learn more about Stream Chat here, and then sign up for an account and obtain your own keys here.
- Clone the repository
- Open the project in Android Studio (Arctic Fox or later)
- Run the app
- Make sure to check the Details section below for the different steps
The tutorial app consists of two screens:
MainActivity
: Shows the list of available channels.MessagesActivity
: Shows the selected channel view, which includes the header, message list, and message input view.
There are a handful of MessagesActivity
implementations, which correspond to the steps of the tutorial. You can easily swap them by changing the onChannelClick
handler located in MainActivity
:
onChannelClick = { channel ->
startActivity(MessagesActivity4.getIntent(this, channel.cid))
},
You can choose from four different MessagesActivity
implementations:
MessagesActivity
- a basic Message Screen implementationMessagesActivity2
- includes customization of the screen by usingChatTheme
MessagesActivity3
- uses bound and stateless components to build the chat screen, with further customizationMessagesActivity4
- uses a custom message composer component for extended customization