Commit 285161a3 authored by Grigory Fedorov's avatar Grigory Fedorov

Contact List: grey background, light active chat. New client icons (black with alpha)

parent 23446ca3
...@@ -72,13 +72,17 @@ public class ChatContactInflater extends ClientContactInflater { ...@@ -72,13 +72,17 @@ public class ChatContactInflater extends ClientContactInflater {
final ViewHolder contactViewHolder = (ViewHolder) view.getTag(); final ViewHolder contactViewHolder = (ViewHolder) view.getTag();
if (MessageManager.getInstance().hasActiveChat( if (MessageManager.getInstance().hasActiveChat(
abstractContact.getAccount(), abstractContact.getUser())) { abstractContact.getAccount(), abstractContact.getUser())) {
contactViewHolder.panel // contactViewHolder.panel.setBackgroundResource(R.drawable.active_chat);
.setBackgroundResource(R.drawable.active_chat); view.setBackgroundColor(activity.getResources()
.getColor(R.color.grey_50));
contactViewHolder.name.setTextColor(activity.getResources() contactViewHolder.name.setTextColor(activity.getResources()
.getColor(android.R.color.primary_text_light)); .getColor(android.R.color.primary_text_light));
contactViewHolder.status.setTextColor(activity.getResources() contactViewHolder.status.setTextColor(activity.getResources()
.getColor(android.R.color.secondary_text_light)); .getColor(android.R.color.secondary_text_light));
} else { } else {
view.setBackgroundColor(activity.getResources()
.getColor(android.R.color.transparent));
contactViewHolder.panel.setBackgroundDrawable(null); contactViewHolder.panel.setBackgroundDrawable(null);
contactViewHolder.name.setTextColor(textColorPrimary); contactViewHolder.name.setTextColor(textColorPrimary);
contactViewHolder.status.setTextColor(textColorSecondary); contactViewHolder.status.setTextColor(textColorSecondary);
......
<?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/.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:state_pressed="true"
android:drawable="@drawable/active_chat_pressed" />
<item
android:state_selected="true"
android:drawable="@drawable/active_chat_focused" />
<item
android:state_focused="true"
android:drawable="@drawable/active_chat_focused" />
<item
android:drawable="@drawable/active_chat_normal" />
</selector>
...@@ -61,6 +61,7 @@ ...@@ -61,6 +61,7 @@
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:paddingRight="@dimen/client_software_margin_left" android:paddingRight="@dimen/client_software_margin_left"
android:src="@drawable/ic_client" android:src="@drawable/ic_client"
android:alpha="0.05"
/> />
<TextView <TextView
android:id="@+id/name" android:id="@+id/name"
......
...@@ -24,7 +24,9 @@ ...@@ -24,7 +24,9 @@
android:id="@android:id/list" android:id="@android:id/list"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:drawSelectorOnTop="true" /> android:drawSelectorOnTop="true"
android:background="@color/grey_300"
/>
<RelativeLayout <RelativeLayout
android:id="@+id/info" android:id="@+id/info"
......
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