Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AloqaIM-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
AloqaIM-Android
Commits
9c32ec50
Commit
9c32ec50
authored
Apr 24, 2018
by
Divyanshu Bhargava
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edited message indicator
parent
46eff2d8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
MessageViewHolder.kt
...chat/rocket/android/chatroom/adapter/MessageViewHolder.kt
+4
-0
item_message.xml
app/src/main/res/layout/item_message.xml
+10
-0
No files found.
app/src/main/java/chat/rocket/android/chatroom/adapter/MessageViewHolder.kt
View file @
9c32ec50
...
@@ -4,6 +4,7 @@ import android.graphics.Color
...
@@ -4,6 +4,7 @@ import android.graphics.Color
import
android.text.method.LinkMovementMethod
import
android.text.method.LinkMovementMethod
import
android.view.View
import
android.view.View
import
chat.rocket.android.chatroom.viewmodel.MessageViewModel
import
chat.rocket.android.chatroom.viewmodel.MessageViewModel
import
chat.rocket.android.util.extensions.setVisible
import
chat.rocket.android.widget.emoji.EmojiReactionListener
import
chat.rocket.android.widget.emoji.EmojiReactionListener
import
kotlinx.android.synthetic.main.avatar.view.*
import
kotlinx.android.synthetic.main.avatar.view.*
import
kotlinx.android.synthetic.main.item_message.view.*
import
kotlinx.android.synthetic.main.item_message.view.*
...
@@ -33,6 +34,9 @@ class MessageViewHolder(
...
@@ -33,6 +34,9 @@ class MessageViewHolder(
text_content
.
setTextColor
(
text_content
.
setTextColor
(
if
(
data
.
isTemporary
)
Color
.
GRAY
else
Color
.
BLACK
if
(
data
.
isTemporary
)
Color
.
GRAY
else
Color
.
BLACK
)
)
if
(
data
.
message
.
editedBy
!=
null
){
image_edit_indicator
.
setVisible
(
true
)
}
}
}
}
}
}
}
\ No newline at end of file
app/src/main/res/layout/item_message.xml
View file @
9c32ec50
...
@@ -74,6 +74,16 @@
...
@@ -74,6 +74,16 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"10dp"
android:layout_marginStart=
"10dp"
tools:text=
"11:45 PM"
/>
tools:text=
"11:45 PM"
/>
<ImageView
android:id=
"@+id/image_edit_indicator"
android:layout_width=
"16dp"
android:layout_height=
"16dp"
android:src=
"@drawable/ic_edit_black_24px"
android:layout_marginStart=
"8dp"
android:layout_gravity=
"center_vertical"
android:visibility=
"gone"
tools:visibility=
"visible"
/>
</LinearLayout>
</LinearLayout>
<TextView
<TextView
...
...
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