用于文本选择控件的自定义浮动工具栏

2023-11-29

我想自定义选择文本时出现的浮动工具栏。

这是标准浮动工具栏的示例:

Floating Toolbar example.

你知道我如何定制它(比如添加粗体、斜体……)吗?有外部图书馆吗?

Monospace 应用程序正是我想要的:

enter image description here


您将向清单中的活动添加一个意图过滤器:

<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>`
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

用于文本选择控件的自定义浮动工具栏 的相关文章

随机推荐