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
1dd6ad10
Commit
1dd6ad10
authored
Feb 04, 2018
by
Leonardo Aramaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add edit action menu icon
parent
94e86c98
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
ActionSnackbar.kt
...in/java/chat/rocket/android/chatroom/ui/ActionSnackbar.kt
+3
-3
ic_edit_black_24px.xml
app/src/main/res/drawable/ic_edit_black_24px.xml
+9
-0
message_action_bar.xml
app/src/main/res/layout/message_action_bar.xml
+0
-0
No files found.
app/src/main/java/chat/rocket/android/chatroom/ui/
Cita
tionSnackbar.kt
→
app/src/main/java/chat/rocket/android/chatroom/ui/
Ac
tionSnackbar.kt
View file @
1dd6ad10
...
...
@@ -20,10 +20,10 @@ class CitationSnackbar : BaseTransientBottomBar<CitationSnackbar> {
companion
object
{
fun
make
(
parentViewGroup
:
ViewGroup
,
content
:
String
):
CitationSnackbar
{
val
context
=
parentViewGroup
.
context
val
view
=
LayoutInflater
.
from
(
context
).
inflate
(
R
.
layout
.
quote
_bar
,
parentViewGroup
,
false
)
val
view
=
LayoutInflater
.
from
(
context
).
inflate
(
R
.
layout
.
message_action
_bar
,
parentViewGroup
,
false
)
val
citationSnackbar
=
CitationSnackbar
(
parentViewGroup
,
view
,
CallbackImpl
(
view
))
citationSnackbar
.
textView
=
view
.
findViewById
(
R
.
id
.
text_view_
quote
)
as
TextView
citationSnackbar
.
cancelView
=
view
.
findViewById
(
R
.
id
.
image_view_cancel_quote
)
as
ImageView
citationSnackbar
.
textView
=
view
.
findViewById
(
R
.
id
.
text_view_
action_text
)
as
TextView
citationSnackbar
.
cancelView
=
view
.
findViewById
(
R
.
id
.
image_view_
action_
cancel_quote
)
as
ImageView
citationSnackbar
.
duration
=
BaseTransientBottomBar
.
LENGTH_INDEFINITE
val
spannable
=
SpannableString
(
content
)
citationSnackbar
.
marginDrawable
=
context
.
getDrawable
(
R
.
drawable
.
quote
)
...
...
app/src/main/res/drawable/ic_edit_black_24px.xml
0 → 100644
View file @
1dd6ad10
<vector
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:width=
"24dp"
android:height=
"24dp"
android:viewportWidth=
"24.0"
android:viewportHeight=
"24.0"
>
<path
android:pathData=
"M3,17.25V21h3.75L17.81,9.94l-3.75,-3.75L3,17.25zM20.71,7.04c0.39,-0.39 0.39,-1.02 0,-1.41l-2.34,-2.34c-0.39,-0.39 -1.02,-0.39 -1.41,0l-1.83,1.83 3.75,3.75 1.83,-1.83z"
android:fillColor=
"#000000"
/>
</vector>
app/src/main/res/layout/
quote
_bar.xml
→
app/src/main/res/layout/
message_action
_bar.xml
View file @
1dd6ad10
File moved
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