Commit 1dd6ad10 authored by Leonardo Aramaki's avatar Leonardo Aramaki

Add edit action menu icon

parent 94e86c98
......@@ -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)
......
<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>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment