| <?xml version="1.0" encoding="utf-8"?><!-- |
| ~ Copyright (C) 2004-2020 Savoir-faire Linux Inc. |
| ~ |
| ~ Author: Adrien BĂ©raud <adrien.beraud@savoirfairelinux.com> |
| ~ |
| ~ This program is free software; you can redistribute it and/or modify |
| ~ it under the terms of the GNU General Public License as published by |
| ~ the Free Software Foundation; either version 3 of the License, or |
| ~ (at your option) any later version. |
| ~ |
| ~ This program is distributed in the hope that it will be useful, |
| ~ but WITHOUT ANY WARRANTY; without even the implied warranty of |
| ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| ~ GNU General Public License for more details. |
| ~ |
| ~ You should have received a copy of the GNU General Public License |
| ~ along with this program; if not, write to the Free Software |
| ~ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| --> |
| <LinearLayout |
| 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:id="@+id/file_layout" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:paddingBottom="8dp" |
| android:background="@android:color/transparent" |
| android:clickable="true" |
| android:descendantFocusability="blocksDescendants" |
| android:focusable="true" |
| android:orientation="vertical" |
| android:gravity="center"> |
| |
| <TextView |
| android:id="@+id/msg_details_txt_perm" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:visibility="gone" |
| android:textColor="@color/textColorSecondary" |
| android:textSize="@dimen/conversation_timestamp_textsize" |
| android:paddingBottom="8dp" |
| tools:text="@string/time_just_now" /> |
| |
| <RelativeLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:paddingTop="8dp" |
| android:paddingEnd="2dp"> |
| |
| <LinearLayout |
| android:id="@+id/audioInfoLayout" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignParentTop="true" |
| android:layout_alignParentEnd="true" |
| android:layout_marginStart="72dp" |
| android:layout_marginEnd="24dp" |
| android:background="@drawable/textmsg_call_background" |
| android:gravity="center_vertical" |
| android:orientation="horizontal" |
| android:padding="4dp"> |
| |
| <ImageView |
| android:id="@+id/play" |
| android:layout_width="32dp" |
| android:layout_height="32dp" |
| android:layout_gravity="center_vertical" |
| android:layout_marginStart="4dp" |
| android:layout_marginEnd="4dp" |
| android:background="?selectableItemBackgroundBorderless" |
| android:contentDescription="@string/lb_playback_controls_play" |
| app:srcCompat="@drawable/baseline_play_arrow_24" /> |
| |
| <ImageView |
| android:id="@+id/replay" |
| android:layout_width="28dp" |
| android:layout_height="28dp" |
| android:layout_gravity="center_vertical" |
| android:layout_marginStart="4dp" |
| android:layout_marginEnd="4dp" |
| android:background="?selectableItemBackgroundBorderless" |
| android:contentDescription="@string/lb_playback_controls_rewind" |
| app:srcCompat="@drawable/baseline_replay_24" /> |
| |
| <TextView |
| android:id="@+id/msg_txt" |
| android:layout_width="120dp" |
| android:layout_height="wrap_content" |
| android:layout_marginStart="8dp" |
| android:layout_marginEnd="16dp" |
| android:ellipsize="middle" |
| android:gravity="center_horizontal" |
| android:scrollHorizontally="true" |
| android:singleLine="true" |
| android:textAppearance="@android:style/TextAppearance.Medium" |
| android:textColor="@color/textColorSecondary" |
| tools:text="2:03 / 2:45" /> |
| |
| </LinearLayout> |
| |
| <ImageView |
| android:id="@+id/status_icon" |
| android:layout_width="14dp" |
| android:layout_height="14dp" |
| android:layout_alignBottom="@id/audioInfoLayout" |
| android:layout_alignParentEnd="true" |
| android:layout_marginEnd="5dp" |
| android:tint="@color/grey_500" |
| app:srcCompat="@drawable/round_check_circle_24" /> |
| |
| <TextView |
| android:id="@+id/file_details_txt" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignEnd="@id/audioInfoLayout" |
| android:layout_below="@id/audioInfoLayout" |
| android:layout_marginEnd="@dimen/conversation_message_radius" |
| android:maxWidth="200dp" |
| android:textColor="@color/textColorSecondary" |
| android:textSize="12sp" |
| tools:text="1 mo - 12 mars" /> |
| |
| </RelativeLayout> |
| |
| </LinearLayout> |