search

Home  >  Q&A  >  body text

android做像微信那样聊天时点击加号弹出底部的那个发送图片、小视频、位置这个整体的窗口是怎么实现的

##就是相当于做一个聊天界面,popupwindow好像不能实现这个功能吧,点击ImageButton实现弹出底部一体的菜单。求大神指导。

伊谢尔伦伊谢尔伦2772 days ago1546

reply all(4)I'll reply

  • 黄舟

    黄舟2017-04-17 15:02:02

    There is a View at the bottom of the input box that displays expressions. Normally, Visibility is GONE. When you need to display expressions, just switch to VISIBLE.
    Of course, this is the most basic solution. For intermediate and advanced levels, you also need to consider the display and hiding of the input method during the switching process of the input box and emoticon view.
    In advanced advancement, you also need to consider calculating the height of the input method, switching the interface display in advance, and eliminating changes in the interface during switching.

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 15:02:02

    http://segmentfault.com/a/1190000003850908
    Written by myself for reference only. .

    reply
    0
  • 高洛峰

    高洛峰2017-04-17 15:02:02

    Fragment
    You can take a look at this Emojicon

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 15:02:02

    1. In a simple way, write View by yourself through popupwindow
    2. Through SubWindow

    reply
    0
  • Cancelreply