mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
[android] Use a nested RecyclerView with a single items to show image attachments
This is preparation for showing multiple image attachments in one message bubble.
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
android:background="@drawable/msg_in"
|
||||
android:elevation="@dimen/message_bubble_elevation">
|
||||
|
||||
<ImageView
|
||||
<android.support.v7.widget.RecyclerView
|
||||
android:id="@+id/imageView"
|
||||
android:layout_width="@dimen/message_bubble_image_default"
|
||||
android:layout_height="@dimen/message_bubble_image_default"
|
||||
@@ -23,6 +23,7 @@
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:ignore="ContentDescription"
|
||||
tools:listitem="@layout/list_item_image"
|
||||
tools:src="@drawable/alerts_and_states_error"/>
|
||||
|
||||
<com.vanniktech.emoji.EmojiTextView
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
android:background="@drawable/msg_in"
|
||||
android:elevation="@dimen/message_bubble_elevation">
|
||||
|
||||
<ImageView
|
||||
<android.support.v7.widget.RecyclerView
|
||||
android:id="@+id/imageView"
|
||||
android:layout_width="@dimen/message_bubble_image_default"
|
||||
android:layout_height="@dimen/message_bubble_image_default"
|
||||
@@ -23,6 +23,7 @@
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:ignore="ContentDescription"
|
||||
tools:listitem="@layout/list_item_image"
|
||||
tools:src="@drawable/alerts_and_states_error"/>
|
||||
|
||||
<com.vanniktech.emoji.EmojiTextView
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
android:background="@drawable/msg_in"
|
||||
android:elevation="@dimen/message_bubble_elevation">
|
||||
|
||||
<ImageView
|
||||
<android.support.v7.widget.RecyclerView
|
||||
android:id="@+id/imageView"
|
||||
android:layout_width="@dimen/message_bubble_image_default"
|
||||
android:layout_height="@dimen/message_bubble_image_default"
|
||||
@@ -23,7 +23,8 @@
|
||||
app:layout_constraintBottom_toTopOf="@+id/text"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:ignore="ContentDescription"/>
|
||||
tools:ignore="ContentDescription"
|
||||
tools:listitem="@layout/list_item_image"/>
|
||||
|
||||
<com.vanniktech.emoji.EmojiTextView
|
||||
android:id="@+id/text"
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
android:background="@drawable/msg_out"
|
||||
android:elevation="@dimen/message_bubble_elevation">
|
||||
|
||||
<ImageView
|
||||
<android.support.v7.widget.RecyclerView
|
||||
android:id="@+id/imageView"
|
||||
android:layout_width="@dimen/message_bubble_image_default"
|
||||
android:layout_height="@dimen/message_bubble_image_default"
|
||||
|
||||
9
briar-android/src/main/res/layout/list_item_image.xml
Normal file
9
briar-android/src/main/res/layout/list_item_image.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ImageView
|
||||
android:id="@+id/imageView"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="@dimen/message_bubble_image_default"
|
||||
android:layout_height="@dimen/message_bubble_image_default"
|
||||
tools:ignore="ContentDescription"
|
||||
tools:src="@drawable/alerts_and_states_error"/>
|
||||
Reference in New Issue
Block a user