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
78d01152
Commit
78d01152
authored
Feb 17, 2015
by
Grigory Fedorov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Account color corrections.
parent
efc5f242
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
GroupedContactAdapter.java
.../com/xabber/android/ui/adapter/GroupedContactAdapter.java
+0
-1
color_arrays.xml
app/src/main/res/values/color_arrays.xml
+8
-8
No files found.
app/src/main/java/com/xabber/android/ui/adapter/GroupedContactAdapter.java
View file @
78d01152
...
@@ -153,7 +153,6 @@ public abstract class GroupedContactAdapter<Inflater extends BaseContactInflater
...
@@ -153,7 +153,6 @@ public abstract class GroupedContactAdapter<Inflater extends BaseContactInflater
final
int
level
;
final
int
level
;
if
(
configuration
instanceof
AccountConfiguration
)
{
if
(
configuration
instanceof
AccountConfiguration
)
{
level
=
AccountManager
.
getInstance
().
getColorLevel
(
configuration
.
getAccount
());
level
=
AccountManager
.
getInstance
().
getColorLevel
(
configuration
.
getAccount
());
viewHolder
.
name
.
setTextColor
(
expanderAccountTextColor
);
view
.
setBackgroundDrawable
(
new
ColorDrawable
(
accountActionBarColors
[
level
]));
view
.
setBackgroundDrawable
(
new
ColorDrawable
(
accountActionBarColors
[
level
]));
}
else
{
}
else
{
view
.
setBackgroundDrawable
(
view
.
setBackgroundDrawable
(
...
...
app/src/main/res/values/color_arrays.xml
View file @
78d01152
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<resources>
<array
name=
"account_action_bar"
>
<array
name=
"account_action_bar"
>
<item>
@color/
green
_500
</item>
<item>
@color/
teal
_500
</item>
<item>
@color/
yellow
_500
</item>
<item>
@color/
deep_orange
_500
</item>
<item>
@color/
red
_500
</item>
<item>
@color/
pink
_500
</item>
<item>
@color/
blu
e_500
</item>
<item>
@color/
dark_purpl
e_500
</item>
</array>
</array>
<array
name=
"account_status_bar"
>
<array
name=
"account_status_bar"
>
<item>
@color/
green
_700
</item>
<item>
@color/
teal
_700
</item>
<item>
@color/
yellow
_700
</item>
<item>
@color/
deep_orange
_700
</item>
<item>
@color/
red
_700
</item>
<item>
@color/
pink
_700
</item>
<item>
@color/
blu
e_700
</item>
<item>
@color/
dark_purpl
e_700
</item>
</array>
</array>
<color
name=
"account_disabled"
>
@color/black_dividers
</color>
<color
name=
"account_disabled"
>
@color/black_dividers
</color>
...
...
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