V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
wohenyingyu01
V2EX  ›  问与答

安卓 5.0 里的选择应用的上滑对话框怎么写

  •  
  •   wohenyingyu01 · Jul 10, 2015 · 3149 views
    This topic created in 3954 days ago, the information mentioned may be changed or developed.
    就是当你有多个应用响应这个intent时候弹出的窗口。
    搜过很多方案,感觉都一般。
    但是既然是5.0的原生窗口,难道不应该有一个默认的dialog么,从头重写好烦的,求有经验的人指导下。
    13 replies    2015-07-10 17:59:58 +08:00
    nicktogo
        2
    nicktogo  
       Jul 10, 2015
    这样?

    inmyfree
        3
    inmyfree  
       Jul 10, 2015
    我是通过动画+弹窗解决的
    mthli
        4
    mthli  
       Jul 10, 2015 via Android
    我记得Telegram实现了楼主想要的东西,去看看它的代码吧,GitHub上有。
    MASAILA
        5
    MASAILA  
       Jul 10, 2015   ❤️ 1
    https://github.com/soarcn/BottomSheet

    叫我开源项目小达人
    wohenyingyu01
        6
    wohenyingyu01  
    OP
       Jul 10, 2015
    @nicktogo 是的是的T T
    wohenyingyu01
        7
    wohenyingyu01  
    OP
       Jul 10, 2015
    @inmyfree 貌似是最直接的办法
    wohenyingyu01
        8
    wohenyingyu01  
    OP
       Jul 10, 2015
    @MASAILA 谢谢谢谢谢,我研究下
    dupengtao
        9
    dupengtao  
       Jul 10, 2015
    原生是个Activity
    nicktogo
        10
    nicktogo  
       Jul 10, 2015 via Android
    @wohenyingyu01 我这个是调用邮件程序的intent,直接就会弹出这样的列表了。。
    Email
        11
    Email  
       Jul 10, 2015   ❤️ 1
    https://github.com/umano/AndroidSlidingUpPanel

    着重参考这个项目来写.
    主要是对ViewDragHelper的运用
    wohenyingyu01
        12
    wohenyingyu01  
    OP
       Jul 10, 2015
    @dupengtao 怎么弄的,有例子么
    wohenyingyu01
        13
    wohenyingyu01  
    OP
       Jul 10, 2015
    @Email 好东西!!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5755 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 70ms · UTC 08:38 · PVG 16:38 · LAX 01:38 · JFK 04:38
    ♥ Do have faith in what you're doing.