mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Updated conversation event design
This commit is contained in:
parent
6faff7f780
commit
2ca3d017bf
5 changed files with 35 additions and 6 deletions
|
|
@ -100,6 +100,12 @@ class EventModel @WorkerThread constructor(private val eventLog: EventLog) {
|
|||
EventLog.Type.ConferenceSubjectChanged -> {
|
||||
R.drawable.pencil_simple
|
||||
}
|
||||
EventLog.Type.ConferenceParticipantAdded,
|
||||
EventLog.Type.ConferenceParticipantRemoved,
|
||||
EventLog.Type.ConferenceParticipantDeviceAdded,
|
||||
EventLog.Type.ConferenceParticipantDeviceRemoved -> {
|
||||
R.drawable.door
|
||||
}
|
||||
else -> R.drawable.user_circle
|
||||
},
|
||||
coreContext.context.theme
|
||||
|
|
|
|||
9
app/src/main/res/drawable/door.xml
Normal file
9
app/src/main/res/drawable/door.xml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="256"
|
||||
android:viewportHeight="256">
|
||||
<path
|
||||
android:pathData="M232,216L208,216L208,40a16,16 0,0 0,-16 -16L64,24A16,16 0,0 0,48 40L48,216L24,216a8,8 0,0 0,0 16L232,232a8,8 0,0 0,0 -16ZM64,40L192,40L192,216L64,216ZM168,132a12,12 0,1 1,-12 -12A12,12 0,0 1,168 132Z"
|
||||
android:fillColor="#4e6074"/>
|
||||
</vector>
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
|
||||
<corners android:radius="5dp" />
|
||||
<stroke android:color="?attr/color_main2_200" android:width="1dp"/>
|
||||
</shape>
|
||||
|
|
@ -9,20 +9,29 @@
|
|||
type="org.linphone.ui.main.chat.model.EventModel" />
|
||||
</data>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
style="@style/default_text_style_300"
|
||||
style="@style/default_text_style"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:padding="5dp"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_marginBottom="5dp"
|
||||
android:background="@drawable/shape_squircle_main2_200_chat_event_border"
|
||||
android:text="@{model.text, default=`You have left the group`}"
|
||||
android:textColor="?attr/color_grey_400"
|
||||
android:textSize="12sp"
|
||||
android:maxLines="2"
|
||||
android:ellipsize="end"
|
||||
android:textAlignment="center"
|
||||
android:gravity="center"
|
||||
android:drawableStart="@{model.icon, default=@drawable/clock_countdown}"
|
||||
android:drawablePadding="4dp"
|
||||
android:drawablePadding="5dp"
|
||||
android:drawableTint="?attr/color_grey_400"/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
</layout>
|
||||
|
|
@ -34,7 +34,7 @@
|
|||
<item name="color_grey_100">@color/gray_200_night</item>
|
||||
<item name="color_grey_200">@color/gray_600</item>
|
||||
<item name="color_grey_300">@color/gray_300</item>
|
||||
<item name="color_grey_400">@color/gray_600</item>
|
||||
<item name="color_grey_400">@color/gray_300</item>
|
||||
<item name="color_grey_500">@color/gray_500</item>
|
||||
<item name="color_grey_600">@color/gray_400</item>
|
||||
<item name="color_grey_800">@color/gray_200</item>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue