-
Notifications
You must be signed in to change notification settings - Fork 148
Change UI arttribute
Tsubasa Nakayama edited this page Jun 8, 2018
·
2 revisions
How to change font size and layout.
| name | detail |
|---|---|
| message_font_size | font size of text in a bubble |
| username_font_size | font size of username above a bubble |
| time_label_font_size | font size of time label next to a bubble |
| message_max_width | width of a bubble |
| date_separator_font_size | font size of date label between bubbles |
| option_button_enable | enable option button next to EditText in ChatView |
| text_selectable | selectable text for copying |
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.github.bassaer.chatmessageview.views.ChatView
android:id="@+id/chat_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:message_font_size="20sp"
app:date_separator_font_size="16sp"
app:time_label_font_size="16sp"
app:username_font_size="16sp"
app:message_max_width="200dp"
app:option_button_enable="true"
app:text_selectable="true"/>
</LinearLayout>