search

Home  >  Q&A  >  body text

java - 怎么加一个按钮点击就到侧滑页面啊,求大神指教

怎么加按钮点击就到侧滑页面啊啊,求大神指教,看图

PHPzPHPz2901 days ago321

reply all(8)I'll reply

  • PHP中文网

    PHP中文网2017-04-18 10:02:11

    This can be achieved using the built-in DrawLayout. For details, you can search on Baidu,

    reply
    0
  • ringa_lee

    ringa_lee2017-04-18 10:02:11

    Search for Android design support library by yourself
    Or directly create a new project and check Navigation Drawer Activity

    reply
    0
  • PHP中文网

    PHP中文网2017-04-18 10:02:11

    Add a button to listen for turning on side sliding, and use a boolean variable to control the switch state

    reply
    0
  • 阿神

    阿神2017-04-18 10:02:11

    DrawLayout

    reply
    0
  • PHPz

    PHPz2017-04-18 10:02:11

    Use DrawLayout
    drawerLayout.openDrawer(Gravity.LEFT);//Follow the parameters

    reply
    0
  • PHP中文网

    PHP中文网2017-04-18 10:02:11

    Google official sidebar menu Demo
    https://github.com/googlesamp...

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-18 10:02:11

    ActionBar has events, it can be easily implemented with SlideMenu

    reply
    0
  • 阿神

    阿神2017-04-18 10:02:11

    Recommend a simple example
    http://www.jcodecraeer.com/a/...

    reply
    0
  • Cancelreply