GetStream / stream-chat-android

:speech_balloon: Android Chat SDK ➜ Stream Chat API. UI component libraries for chat apps. Kotlin & Jetpack Compose messaging SDK for Android chat
https://getstream.io/chat/sdk/android/
Other
1.47k stars 274 forks source link

[MessageListView] Message Lacks Horizontal Margin #1740

Closed Dumblydore closed 3 years ago

Dumblydore commented 3 years ago

Using a MessageListView the messages themselves lack horizontal margin. Here's what the layout code looks like:

   <com.getstream.sdk.chat.view.MessageListView
            android:id="@+id/liveStream.playback.chat.list"
            android:layout_marginHorizontal="0dp"
            android:clipToPadding="false"
            style="@style/AppTheme.Chat.MessageList"
            android:layout_width="match_parent"
            android:layout_height="match_parent" />

Is there something I'm not doing correctly? Thanks in advance. SDK version

Expected behavior A clear and concise description of what you expected to happen.

Device:

Screenshots https://imgur.com/a/BoDMjOt

devUndef1ned commented 3 years ago

Hello, @Dumblydore Could you show whole xml layout? Also, we launched new UI components at the beginning of this year, you can try them!

samiuelson commented 3 years ago

Hi, @Dumblydore,

If you build your chat from scratch we recommend using the new ui-components artifact (https://github.com/GetStream/stream-chat-android/tree/main/stream-chat-android-ui-components). Old UI components implementation is going to be deprecated.

Let me know if you have any other issues.