Giter Club home page Giter Club logo

android-chat-tutorial's Introduction

Android Chat Tutorial Sample

This repository allows you to check the result after completing each step described in the Android Chat Tutorial. It contains samples written in both Kotlin (samplekotlin module) and Java (samplejava module). For more Android Chat examples, see the Github repo for the SDK and the UI Components sample app in it.

Already all-in on Jetpack Compose? Check out the tutorial repo of our Compose 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.

Quick start

  1. Clone the repository
  2. Open the project in Android Studio
  3. Run the samplekotlin or samplejava configuration
  4. Make sure to check the Details section below for customizations

Details

The sample apps consist of two screens:

  • MainActivity: Shows the list of available channels.
  • ChannelActivity: Shows the selected channel view, which includes the header, message list, and message input view.

Each module contains multiple ChannelActivity implementations, which correspond to the steps of the tutorial. You can easily swap them by changing the setOnChannelClickListener located in MainActivity:

channelListView.setOnChannelClickListener { channel ->
    // open the channel activity
    startActivity(ChannelActivity.newIntent(this, channel))
}

Currently, you can choose from four different ChannelActivity implementations:

  • ChannelActivity - a basic Message List implementation
  • ChannelActivity2 - includes a new MessageListView style and custom attachment type
  • ChannelActivity4 - includes a custom Typing Header component created with the Low-Level Client library

android-chat-tutorial's People

Contributors

adasiewiczr avatar bychkovdmitry avatar elevenetc avatar filbabic avatar jcminarro avatar leandroborgesferreira avatar marintolic avatar skydoves avatar tschellenbach avatar zsmb13 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.