Commit 028edf9d authored by Grigory Fedorov's avatar Grigory Fedorov

Contact list item alignment changed, new small icon for offline/online contacts.

parent 2407d7c5
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2013, Redsolution LTD. All rights reserved.
This file is part of Xabber project; you can redistribute it and/or
modify it under the terms of the GNU General Public License, Version 3.
Xabber 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, see http://www.gnu.org/licenses/.
-->
<level-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:drawable="@drawable/ic_show_offline_always_10dp"
android:minLevel="0"
android:maxLevel="0" />
<item
android:drawable="@android:color/transparent"
android:minLevel="1"
android:maxLevel="1" />
<item
android:drawable="@drawable/ic_show_offline_never_10dp"
android:minLevel="2"
android:maxLevel="2" />
</level-list>
\ No newline at end of file
......@@ -68,7 +68,7 @@
android:textStyle="bold"
/>
<LinearLayout
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
......@@ -88,27 +88,27 @@
<TextView
android:id="@+id/second_line_message"
android:layout_width="0dp"
android:layout_width="match_parent"
android:layout_weight="1"
android:layout_height="wrap_content"
android:singleLine="true"
android:ellipsize="marquee"
android:text="second line message long text"
android:layout_toRightOf="@+id/outgoing_message_indicator"
android:layout_toLeftOf="@+id/small_right_icon"
/>
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
>
<ImageView
android:id="@+id/small_right_icon"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/ic_show_offline"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_show_offline_small"
android:alpha="0.2"
android:layout_toLeftOf="@+id/small_right_text"
android:layout_alignBottom="@+id/second_line_message"
android:layout_marginBottom="2dp"
/>
</FrameLayout>
<TextView
android:id="@+id/small_right_text"
......@@ -117,13 +117,15 @@
android:singleLine="true"
android:ellipsize="marquee"
android:textColor="#32000000"
android:textSize="12sp"
android:textSize="10sp"
android:layout_gravity="bottom"
android:text="right text"
android:paddingLeft="2dp"
android:paddingRight="6dp"
android:layout_alignParentRight="true"
android:layout_alignBaseline="@+id/second_line_message"
/>
</LinearLayout>
</RelativeLayout>
</LinearLayout>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment