xiaoke
V2EX  ›  问与答

请问安卓中这个选中文字后,出现的功能菜单叫啥功能,专业说法

  •  
  •   xiaoke · May 17, 2024 · 2281 views
    This topic created in 907 days ago, the information mentioned may be changed or developed.
    请问安卓中选中一小段文字后,出现的功能菜单叫啥功能(标准叫法),比如“翻译”、“在浏览器打开”之类。
    11 replies  •  2024-05-18 00:00:08 +08:00
    Building
    Building
    May 17, 2024❤️1
    1
    Context Menu
    xiaoke
    xiaoke
    OP
    May 17, 2024
    2
    @Building #1 谢谢,有约定俗成的中文翻译吗,“上下文菜单”?
    yolee599
    yolee599
    May 17, 2024 via Android
    3
    弹出菜单吧,PopuMenu
    jiahailiang22
    jiahailiang22
    May 17, 2024
    4
    popview
    xiaoke
    xiaoke
    OP
    May 17, 2024
    5
    补充截图🔗一直提示发表失败… app 端操作真是捉急。
    eroneko
    eroneko
    May 17, 2024
    6
    https://developer.android.com/training/package-visibility/use-cases?hl=zh-cn#custom-text-selection-actions
    text selection toolbar / text selection actions
    文字选择工具栏 / 文字选择操作
    dream7758522
    dream7758522
    May 17, 2024 via Android
    7
    稍微跑个题。这个菜单里好多 APP 会拉屎。有修改这个菜单的工具吗?
    unco020511
    unco020511
    May 17, 2024
    8
    关键字: floating text selection toolbar 或者 text selection action
    如果是要定制选项,有两种
    1:定制应用内某个 view/页面,那么使用 ActionMode
    2:定制全局 text selection action,那么需要使用 ACTION_PROCESS_TEXT 这个 intent

    参见:https://medium.com/androiddevelopers/custom-text-selection-actions-with-action-process-text-191f792d2999
    unco020511
    unco020511
    May 17, 2024
    9
    中文好像没有约定俗成的,「文本选择菜单」 ?
    xiaoke
    xiaoke
    OP
    May 17, 2024
    10
    谢谢各位回复,我也搜了下,应该是“上下文菜单”。晚上回去补个图。
    xiaoke
    xiaoke
    OP
    May 18, 2024
    11

    补图了,通过长按文字后触发如图所示的菜单。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2310 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 13:33 · PVG 21:33 · LAX 05:33 · JFK 08:33
    ♥ Do have faith in what you're doing.