mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-20 04:58:07 +00:00
176 lines
5.8 KiB
XML
176 lines
5.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<View
|
|
android:id="@+id/rightAnchor"
|
|
android:layout_width="1dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_alignParentTop="true"/>
|
|
|
|
<CheckBox
|
|
android:id="@+id/delete_message"
|
|
android:visibility="gone"
|
|
android:button="@drawable/checkbox"
|
|
android:contentDescription="@string/content_description_delete"
|
|
android:layout_width="30dp"
|
|
android:layout_height="30dp"
|
|
android:adjustViewBounds="true"
|
|
android:clickable="false"
|
|
android:layout_marginLeft="5dp"
|
|
android:layout_alignRight="@id/rightAnchor"/>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/event"
|
|
android:visibility="gone"
|
|
android:orientation="horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_toLeftOf="@id/rightAnchor"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginBottom="5dp"
|
|
android:gravity="center_vertical">
|
|
|
|
<ImageView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_marginRight="10dp"
|
|
android:src="@drawable/event_decoration_gray"
|
|
android:scaleType="fitXY"/>
|
|
|
|
<TextView
|
|
android:id="@+id/event_text"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"/>
|
|
|
|
<ImageView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_marginLeft="10dp"
|
|
android:src="@drawable/event_decoration_gray"
|
|
android:scaleType="fitXY"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/security_event"
|
|
android:visibility="gone"
|
|
android:orientation="horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_toLeftOf="@id/rightAnchor"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginBottom="5dp"
|
|
android:gravity="center_vertical">
|
|
|
|
<ImageView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_marginRight="10dp"
|
|
android:src="@drawable/event_decoration_red"
|
|
android:scaleType="fitXY"/>
|
|
|
|
<TextView
|
|
android:id="@+id/security_event_text"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="@color/colorI"/>
|
|
|
|
<ImageView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_marginLeft="10dp"
|
|
android:src="@drawable/event_decoration_red"
|
|
android:scaleType="fitXY"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/bubble"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_toLeftOf="@id/rightAnchor">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/background"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="45dp"
|
|
android:layout_marginTop="1dp"
|
|
android:layout_marginBottom="1dp"
|
|
android:background="@drawable/chat_bubble_outgoing_full"
|
|
android:layout_below="@+id/time"
|
|
android:layout_toLeftOf="@+id/imdn"
|
|
android:paddingBottom="5dp"
|
|
android:paddingTop="5dp"
|
|
android:orientation="vertical">
|
|
|
|
<com.google.android.flexbox.FlexboxLayout
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:id="@+id/pictures"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="5dp"
|
|
android:layout_marginRight="5dp"
|
|
app:flexWrap="wrap"/>
|
|
|
|
<TextView
|
|
android:id="@+id/message"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="@style/chat_bubble_message_font"
|
|
android:layout_marginLeft="10dp"
|
|
android:layout_marginRight="10dp"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginBottom="5dp"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/message_sender_avatar"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignTop="@id/background">
|
|
|
|
<include layout="@layout/contact_avatar"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
<TextView
|
|
android:id="@id/time"
|
|
android:textAppearance="@style/chat_bubble_time_font"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="right"
|
|
android:layout_marginTop="7dp"
|
|
android:layout_marginLeft="45dp"
|
|
android:layout_toLeftOf="@id/imdn"/>
|
|
|
|
<ImageView
|
|
android:id="@id/imdn"
|
|
android:layout_width="10dp"
|
|
android:layout_height="10dp"
|
|
android:src="@drawable/imdn_received"
|
|
android:layout_marginLeft="5dp"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_alignBottom="@id/background"/>
|
|
|
|
<ProgressBar
|
|
android:id="@+id/send_in_progress"
|
|
android:layout_width="10dp"
|
|
android:layout_height="10dp"
|
|
android:indeterminateTint="@color/colorA"
|
|
android:src="@drawable/imdn_received"
|
|
android:layout_marginLeft="5dp"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_alignBottom="@id/background"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
</RelativeLayout>
|