Skip to content

Commit 924999f

Browse files
author
Carter Hudson
committed
updates for message list styling
1 parent 5ff3b39 commit 924999f

File tree

4 files changed

+16
-5
lines changed

4 files changed

+16
-5
lines changed

samplekotlin/src/main/java/com/example/chattutorial/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class MainActivity : AppCompatActivity() {
5555
// Step 4 - Connect the ChannelsViewModel to the ChannelsView, loose coupling makes it easy to customize
5656
viewModel.bindView(binding.channelsView, this)
5757
binding.channelsView.setChannelItemClickListener { channel ->
58-
startActivity(ChannelActivity4.newIntent(this, channel))
58+
startActivity(ChannelActivity2.newIntent(this, channel))
5959
}
6060
}
6161
}

samplekotlin/src/main/res/layout/activity_channel_2.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@
2020
app:layout_constraintBottom_toTopOf="@+id/messageInputView"
2121
app:layout_constraintEnd_toEndOf="parent"
2222
app:layout_constraintStart_toStartOf="parent"
23-
app:layout_constraintTop_toBottomOf="@+id/messagesHeaderView" />
23+
app:layout_constraintTop_toBottomOf="@+id/messagesHeaderView"
24+
app:streamUiMessageBackgroundColorMine="#70AF74"
25+
app:streamUiMessageBackgroundColorTheirs="#FFF"
26+
app:streamUiMessageTextColorMine="#FFF"
27+
app:streamUiMessageTextColorTheirs="#000" />
2428

2529
<io.getstream.chat.android.ui.textinput.MessageInputView
2630
android:id="@+id/messageInputView"

samplekotlin/src/main/res/layout/activity_channel_3.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@
3030
app:layout_constraintBottom_toTopOf="@+id/messageInputView"
3131
app:layout_constraintEnd_toEndOf="parent"
3232
app:layout_constraintStart_toStartOf="parent"
33-
app:layout_constraintTop_toBottomOf="@+id/typingHeaderView" />
33+
app:layout_constraintTop_toBottomOf="@+id/typingHeaderView"
34+
app:streamUiMessageBackgroundColorMine="#70AF74"
35+
app:streamUiMessageBackgroundColorTheirs="#FFF"
36+
app:streamUiMessageTextColorMine="#FFF"
37+
app:streamUiMessageTextColorTheirs="#000" />
3438

3539
<io.getstream.chat.android.ui.textinput.MessageInputView
3640
android:id="@+id/messageInputView"

samplekotlin/src/main/res/layout/activity_channel_4.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,16 @@
2525
<io.getstream.chat.android.ui.messages.view.MessageListView
2626
android:id="@+id/messageListView"
2727
android:layout_width="match_parent"
28-
2928
android:layout_height="0dp"
3029
android:background="#f3f5f8"
3130
app:layout_constraintBottom_toTopOf="@+id/messageInputView"
3231
app:layout_constraintEnd_toEndOf="parent"
3332
app:layout_constraintStart_toStartOf="parent"
34-
app:layout_constraintTop_toBottomOf="@+id/typingHeaderView" />
33+
app:layout_constraintTop_toBottomOf="@+id/typingHeaderView"
34+
app:streamUiMessageBackgroundColorMine="#70AF74"
35+
app:streamUiMessageBackgroundColorTheirs="#FFF"
36+
app:streamUiMessageTextColorMine="#FFF"
37+
app:streamUiMessageTextColorTheirs="#000" />
3538

3639
<io.getstream.chat.android.ui.textinput.MessageInputView
3740
android:id="@+id/messageInputView"

0 commit comments

Comments
 (0)