uqf0663
V2EX  ›  问与答

安卓怎么读取第三方 APP 自定义通知栏的字符串?

  •  
  •   uqf0663 · Aug 13, 2020 · 2955 views
    This topic created in 2177 days ago, the information mentioned may be changed or developed.
    请教一下各位大佬,安卓怎么读取第三方 APP 自定义通知栏的字符串?例如图片中,阿里巴巴那四个蓝色的 0
    常规的监听通知栏读不到,不知道找资料应该搜索啥关键词?
    4 replies    2020-08-21 12:43:01 +08:00
    gz911122
        1
    gz911122  
       Aug 13, 2020
    辅助功能
    Repobor
        2
    Repobor  
       Aug 20, 2020   ❤️ 1
    好像是自定义布局... 尝试用 extras
    little_cup
        3
    little_cup  
       Aug 20, 2020 via Android   ❤️ 1
    首先看 extra 里有没有,大概率没有。
    不行就把把 remoteViews.apply() 到自己的 ViewGoup 里,再自己读内容吧。
    sadfQED2
        4
    sadfQED2  
       Aug 21, 2020 via Android
    试试无障碍
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3041 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 13:52 · PVG 21:52 · LAX 06:52 · JFK 09:52
    ♥ Do have faith in what you're doing.