用于文本选择控件的Custoom浮动工具栏 [英] Custoom floating toolbar for text selection controls
本文介绍了用于文本选择控件的Custoom浮动工具栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想自定义选择文本时出现的浮动工具栏.
I want to customize the floating toolbar that appears when you select a text.
这是标准浮动工具栏的示例:
This is an example of the standard floating toolbar:
.
您知道我如何自定义它(例如添加粗体,斜体等)吗?有外部库吗?
Do you know how I can customize it (like adding Bold, Italic,...)? Is there an external library?
Monospace应用程序正是我想要的:
The Monospace app has exactly what I want:
推荐答案
您将向清单中的活动"添加意图过滤器:
You’ll add an intent filter to an Activity in your manifest:
<activity
android:name=".ProcessTextActivity"
android:label="@string/process_text_action_name">
<intent-filter>
<action android:name="android.intent.action.PROCESS_TEXT" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
</intent-filter>
</activity>`
这篇关于用于文本选择控件的Custoom浮动工具栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文