gpt4 book ai didi

android - 如何在我的编辑文本中启用翻译上下文菜单?

转载 作者:行者123 更新时间:2023-12-04 23:51:45 24 4
gpt4 key购买 nike

在棉花糖上,当我们选择一些文本时,它们现在是一个上下文菜单“翻译”:

enter image description here

问题,我不知道为什么,当我在我的 TextView 中选择文本时,我在我的应用程序中看不到这个选项。我需要做什么来激活它?

最佳答案

在 ListView 中使用?
像这样

MyBaseAdapter baseAdapter = new MyBaseAdapter(getApplicationContext(), listMap);

试试这个
MyBaseAdapter baseAdapter = new MyBaseAdapter(this, listMap);

如果你是 new TextView(context)引用这个 https://android-developers.googleblog.com/2015/10/in-app-translations-in-android.html

关于android - 如何在我的编辑文本中启用翻译上下文菜单?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39540693/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com