Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xabber-android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
xabber-android
Commits
2d0ff6c9
Commit
2d0ff6c9
authored
Jun 24, 2015
by
Grigory Fedorov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Contact list contacts and active chats background colors moved to colors.xml.
parent
bc906738
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
ContactItemInflater.java
...va/com/xabber/android/ui/adapter/ContactItemInflater.java
+2
-2
GroupedContactAdapter.java
.../com/xabber/android/ui/adapter/GroupedContactAdapter.java
+1
-1
colors.xml
app/src/main/res/values/colors.xml
+4
-0
No files found.
app/src/main/java/com/xabber/android/ui/adapter/ContactItemInflater.java
View file @
2d0ff6c9
...
@@ -95,7 +95,7 @@ public class ContactItemInflater {
...
@@ -95,7 +95,7 @@ public class ContactItemInflater {
viewHolder
.
outgoingMessageIndicator
.
setTextColor
(
accountMainColors
[
colorLevel
]);
viewHolder
.
outgoingMessageIndicator
.
setTextColor
(
accountMainColors
[
colorLevel
]);
}
}
view
.
setBackgroundColor
(
context
.
getResources
().
getColor
(
R
.
color
.
grey_50
));
view
.
setBackgroundColor
(
context
.
getResources
().
getColor
(
R
.
color
.
contact_list_active_chat_background
));
viewHolder
.
smallRightIcon
.
setImageResource
(
R
.
drawable
.
ic_client_small
);
viewHolder
.
smallRightIcon
.
setImageResource
(
R
.
drawable
.
ic_client_small
);
viewHolder
.
smallRightIcon
.
setVisibility
(
View
.
VISIBLE
);
viewHolder
.
smallRightIcon
.
setVisibility
(
View
.
VISIBLE
);
viewHolder
.
smallRightIcon
.
setImageLevel
(
clientSoftware
.
ordinal
());
viewHolder
.
smallRightIcon
.
setImageLevel
(
clientSoftware
.
ordinal
());
...
@@ -103,7 +103,7 @@ public class ContactItemInflater {
...
@@ -103,7 +103,7 @@ public class ContactItemInflater {
}
else
{
}
else
{
statusText
=
contact
.
getStatusText
().
trim
();
statusText
=
contact
.
getStatusText
().
trim
();
viewHolder
.
smallRightText
.
setVisibility
(
View
.
GONE
);
viewHolder
.
smallRightText
.
setVisibility
(
View
.
GONE
);
view
.
setBackgroundColor
(
context
.
getResources
().
getColor
(
R
.
color
.
grey_300
));
view
.
setBackgroundColor
(
context
.
getResources
().
getColor
(
R
.
color
.
contact_list_contact_background
));
viewHolder
.
smallRightIcon
.
setVisibility
(
View
.
GONE
);
viewHolder
.
smallRightIcon
.
setVisibility
(
View
.
GONE
);
viewHolder
.
largeClientIcon
.
setVisibility
(
View
.
VISIBLE
);
viewHolder
.
largeClientIcon
.
setVisibility
(
View
.
VISIBLE
);
viewHolder
.
largeClientIcon
.
setImageLevel
(
clientSoftware
.
ordinal
());
viewHolder
.
largeClientIcon
.
setImageLevel
(
clientSoftware
.
ordinal
());
...
...
app/src/main/java/com/xabber/android/ui/adapter/GroupedContactAdapter.java
View file @
2d0ff6c9
...
@@ -108,7 +108,7 @@ public abstract class GroupedContactAdapter extends BaseAdapter implements Updat
...
@@ -108,7 +108,7 @@ public abstract class GroupedContactAdapter extends BaseAdapter implements Updat
accountGroupColors
=
resources
.
getIntArray
(
R
.
array
.
account_200
);
accountGroupColors
=
resources
.
getIntArray
(
R
.
array
.
account_200
);
accountSubgroupColors
=
resources
.
getIntArray
(
R
.
array
.
account_50
);
accountSubgroupColors
=
resources
.
getIntArray
(
R
.
array
.
account_50
);
activeChatsColor
=
resources
.
getColor
(
R
.
color
.
co
lor_primary_light
);
activeChatsColor
=
resources
.
getColor
(
R
.
color
.
co
ntact_list_active_chats_group_background
);
contactItemInflater
=
new
ContactItemInflater
(
activity
);
contactItemInflater
=
new
ContactItemInflater
(
activity
);
...
...
app/src/main/res/values/colors.xml
View file @
2d0ff6c9
...
@@ -85,5 +85,9 @@
...
@@ -85,5 +85,9 @@
<color
name=
"account_disabled"
>
@color/black_dividers
</color>
<color
name=
"account_disabled"
>
@color/black_dividers
</color>
<color
name=
"contact_list_background"
>
@color/grey_400
</color>
<color
name=
"contact_list_background"
>
@color/grey_400
</color>
<color
name=
"contact_list_active_chats_group_background"
>
@color/grey_200
</color>
<color
name=
"contact_list_active_chat_background"
>
@color/grey_50
</color>
<color
name=
"contact_list_contact_background"
>
@color/grey_300
</color>
<color
name=
"recent_chats_background"
>
@color/grey_300
</color>
<color
name=
"recent_chats_background"
>
@color/grey_300
</color>
</resources>
</resources>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment