白色上下文菜单 (copy/paste)
White context menu (copy/paste)
我希望能够从 EditText 框中复制文本。这就是现在的样子,我没有(在顶部栏中)复制突出显示的文本的选项。如何以最简单的方式启用它?
我从主题中更改了图标:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.ituTheme" parent="Theme.AppCompat.Light.NoActionBar">
....
<item name="android:actionModeCutDrawable">@drawable/cut</item>
<item name="actionModeCutDrawable">@drawable/cut</item>
<item name="android:actionModeCopyDrawable">@drawable/copy</item>
<item name="actionModeCopyDrawable">@drawable/copy</item>
<item name="android:actionModePasteDrawable">@drawable/paste</item>
<item name="actionModePasteDrawable">@drawable/paste</item>
<item name="android:actionModeSelectAllDrawable">@drawable/select_all</item>
<item name="actionModeSelectAllDrawable">@drawable/select_all</item>
...
</style>
</resources>
复制、剪切、粘贴,select_all
我希望能够从 EditText 框中复制文本。这就是现在的样子,我没有(在顶部栏中)复制突出显示的文本的选项。如何以最简单的方式启用它?
我从主题中更改了图标:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.ituTheme" parent="Theme.AppCompat.Light.NoActionBar">
....
<item name="android:actionModeCutDrawable">@drawable/cut</item>
<item name="actionModeCutDrawable">@drawable/cut</item>
<item name="android:actionModeCopyDrawable">@drawable/copy</item>
<item name="actionModeCopyDrawable">@drawable/copy</item>
<item name="android:actionModePasteDrawable">@drawable/paste</item>
<item name="actionModePasteDrawable">@drawable/paste</item>
<item name="android:actionModeSelectAllDrawable">@drawable/select_all</item>
<item name="actionModeSelectAllDrawable">@drawable/select_all</item>
...
</style>
</resources>
复制、剪切、粘贴,select_all