Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
briar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Julian Dehm
briar
Commits
e479bf0a
Commit
e479bf0a
authored
11 years ago
by
akwizgran
Browse files
Options
Downloads
Patches
Plain Diff
Show private message timestamp in grey below content.
parent
52cf4761
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
briar-android/res/values/color.xml
+1
-0
1 addition, 0 deletions
briar-android/res/values/color.xml
briar-android/src/org/briarproject/android/contact/ConversationAdapter.java
+14
-13
14 additions, 13 deletions
...org/briarproject/android/contact/ConversationAdapter.java
with
15 additions
and
13 deletions
briar-android/res/values/color.xml
+
1
−
0
View file @
e479bf0a
...
...
@@ -9,4 +9,5 @@
<color
name=
"compose_background"
>
#FFFFFF
</color>
<color
name=
"horizontal_border"
>
#CCCCCC
</color>
<color
name=
"no_posts"
>
#AAAAAA
</color>
<color
name=
"private_message_date"
>
#AAAAAA
</color>
</resources>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
briar-android/src/org/briarproject/android/contact/ConversationAdapter.java
+
14
−
13
View file @
e479bf0a
...
...
@@ -48,18 +48,6 @@ class ConversationAdapter extends ArrayAdapter<ConversationItem> {
if
(
header
.
isRead
())
background
=
res
.
getColor
(
R
.
color
.
read_background
);
else
background
=
res
.
getColor
(
R
.
color
.
unread_background
);
TextView
date
=
new
TextView
(
ctx
);
date
.
setId
(
1
);
date
.
setLayoutParams
(
MATCH_WRAP
);
if
(
header
.
isLocal
())
date
.
setGravity
(
RIGHT
);
else
date
.
setGravity
(
LEFT
);
date
.
setTextSize
(
14
);
date
.
setBackgroundColor
(
background
);
date
.
setPadding
(
pad
,
pad
,
pad
,
0
);
long
timestamp
=
header
.
getTimestamp
();
date
.
setText
(
DateUtils
.
getRelativeTimeSpanString
(
ctx
,
timestamp
));
layout
.
addView
(
date
);
View
content
;
if
(
item
.
getBody
()
==
null
)
{
TextView
ellipsis
=
new
TextView
(
ctx
);
...
...
@@ -77,9 +65,22 @@ class ConversationAdapter extends ArrayAdapter<ConversationItem> {
content
.
setId
(
2
);
content
.
setLayoutParams
(
MATCH_WRAP
);
content
.
setBackgroundColor
(
background
);
content
.
setPadding
(
pad
,
0
,
pad
,
pad
);
content
.
setPadding
(
pad
,
pad
,
pad
,
0
);
layout
.
addView
(
content
);
TextView
date
=
new
TextView
(
ctx
);
date
.
setId
(
1
);
date
.
setLayoutParams
(
MATCH_WRAP
);
if
(
header
.
isLocal
())
date
.
setGravity
(
RIGHT
);
else
date
.
setGravity
(
LEFT
);
date
.
setTextSize
(
14
);
date
.
setTextColor
(
res
.
getColor
(
R
.
color
.
private_message_date
));
date
.
setBackgroundColor
(
background
);
date
.
setPadding
(
pad
,
0
,
pad
,
pad
);
long
timestamp
=
header
.
getTimestamp
();
date
.
setText
(
DateUtils
.
getRelativeTimeSpanString
(
ctx
,
timestamp
));
layout
.
addView
(
date
);
return
layout
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment