blob: 07560c1c6ee46f71677ee2fd1217433979cb8244 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?><!--
Copyright (C) 2004-2015 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.
-->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<RelativeLayout
android:id="@+id/txt_entry_right"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:color/transparent"
android:focusable="false"
android:layout_gravity="right"
android:visibility="gone"
android:paddingRight="@dimen/padding_large"
android:paddingLeft="@dimen/padding_large"
android:paddingTop="4dp"
android:paddingBottom="4dp">
<TextView
android:id="@+id/msg_txt_right"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/textmsg_background"
android:ellipsize="marquee"
android:marqueeRepeatLimit="marquee_forever"
android:padding="12dp"
android:scrollHorizontally="true"
android:singleLine="false"
android:text="Ceci est un long message sur plusieurs lignes. Il apparaitera en multilignes"
android:textColor="@color/text_color_primary"
android:textSize="16sp"
android:focusable="true"
android:textIsSelectable="true"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:layout_marginLeft="48dp" />
<TextView
android:id="@+id/msg_details_txt_right"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Adrien - 12 mars"
android:textColor="@color/text_color_secondary"
android:textSize="14sp"
android:layout_below="@+id/msg_txt_right"
android:layout_alignRight="@+id/msg_txt_right"
android:layout_alignEnd="@+id/msg_txt_right"
android:layout_marginBottom="8dp" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/txt_entry"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:color/transparent"
android:focusable="false"
android:visibility="gone"
android:paddingTop="4dp"
android:paddingBottom="4dp"
android:paddingLeft="@dimen/padding_large"
android:paddingRight="@dimen/padding_large">
<ImageView
android:id="@+id/photo"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_marginRight="16dp"
android:background="@null"
android:scaleType="centerCrop" />
<TextView
android:id="@+id/msg_txt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_toEndOf="@+id/photo"
android:layout_toRightOf="@+id/photo"
android:background="@drawable/textmsg_background"
android:ellipsize="marquee"
android:marqueeRepeatLimit="marquee_forever"
android:padding="12dp"
android:scrollHorizontally="true"
android:singleLine="false"
android:text="Ceci est un message"
android:textColor="@color/text_color_primary"
android:textSize="16sp"
android:focusable="true"
android:textIsSelectable="true"
android:layout_marginRight="48dp" />
<TextView
android:id="@+id/msg_details_txt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="false"
android:layout_below="@+id/msg_txt"
android:layout_toRightOf="@+id/photo"
android:text="Adrien - 12 mars"
android:textColor="@color/text_color_secondary"
android:textSize="14sp"
android:layout_marginBottom="8dp" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/call_entry"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:focusable="false"
android:descendantFocusability="blocksDescendants"
android:background="#ced8da"
android:padding="12dp"
android:layout_marginBottom="8dp"
android:layout_gravity="right|bottom"
android:visibility="visible"
android:layout_marginTop="8dp">
<TextView
android:id="@+id/call_hist_txt"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:singleLine="false"
android:text="Appel manqué"
android:textColor="@color/text_color_primary"
android:textSize="14sp"
/>
<TextView
android:id="@+id/call_details_txt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="false"
android:text="Adrien - 12 mars"
android:textColor="@color/text_color_secondary"
android:textSize="12sp"
android:layout_below="@+id/call_hist_txt" />
</RelativeLayout>
</FrameLayout>