mirror of
https://github.com/pierre42100/ComunicAndroid
synced 2025-07-07 18:42:53 +00:00
Parse URLs in conversation messages
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<android.support.constraint.ConstraintLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
@ -39,7 +38,7 @@
|
||||
app:layout_constraintTop_toTopOf="@id/account_image"
|
||||
tools:text="John Doe" />
|
||||
|
||||
<TextView
|
||||
<org.communiquons.android.comunic.client.ui.views.ContentTextView
|
||||
android:id="@+id/message_body"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@ -62,12 +61,12 @@
|
||||
android:layout_height="98dp"
|
||||
android:layout_marginStart="60dp"
|
||||
android:layout_marginTop="2dp"
|
||||
android:scaleType="fitStart"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/constraintLayout2"
|
||||
app:layout_constraintVertical_bias="0.0"
|
||||
app:srcCompat="@drawable/img_placeholder"
|
||||
android:scaleType="fitStart"/>
|
||||
app:srcCompat="@drawable/img_placeholder" />
|
||||
|
||||
|
||||
<TextView
|
||||
|
@ -1,18 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<android.support.constraint.ConstraintLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="16dp">
|
||||
|
||||
<TextView
|
||||
<org.communiquons.android.comunic.client.ui.views.ContentTextView
|
||||
android:id="@+id/message_body"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginRight="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:background="@drawable/conversation_message_currentuser_bg"
|
||||
android:maxWidth="240dp"
|
||||
android:padding="8dp"
|
||||
@ -45,10 +44,10 @@
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginTop="@dimen/conversation_message_time_padding_top"
|
||||
android:text="11:40"
|
||||
android:textSize="10sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:text="11:40" />
|
||||
|
||||
</android.support.constraint.ConstraintLayout>
|
@ -22,8 +22,10 @@
|
||||
<!-- Conversation messages -->
|
||||
<color name="conversation_user_messages_background">#3F51B5</color>
|
||||
<color name="conversation_user_messages_textColor">#FFFFFF</color>
|
||||
<color name="conversation_user_links_color">#c5cae9</color>
|
||||
<color name="conversation_otheruser_messages_background">#D8D8D8</color>
|
||||
<color name="conversation_otheruser_messages_textColor">#000000</color>
|
||||
<color name="conversation_otheruser_links_color">@color/conversation_user_messages_background</color>
|
||||
|
||||
<!-- Conversations footer -->
|
||||
<color name="conversation_footer_bg">#8c9eff</color>
|
||||
|
Reference in New Issue
Block a user