<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          MaterialDrawerAndroid 側(cè)滑顯示控件

          聯(lián)合創(chuàng)作 · 2023-09-24 09:05

          MaterialDrawer 是一個類似 Google 官方 NavigationView 側(cè)滑顯示控件, 個人認(rèn)為 NavigationView 并沒有 MaterialDrawer 實(shí)用, 因為 NavigationView 自由度不是很好, 很多都寫死了不可以自由定義布局, 而 MaterialDrawer 能夠?qū)崿F(xiàn)跟 NavigationView 一樣的效果, 同時還支持自定義效果, 自由度非常高。

          效果圖:

          Image

          Image

          使用示例

          //if you want to update the items at a later time it is recommended to keep it in a variablePrimaryDrawerItem item1 = new PrimaryDrawerItem().withName(R.string.drawer_item_home);SecondaryDrawerItem item2 = new SecondaryDrawerItem().withName(R.string.drawer_item_settings);//create the drawer and remember the `Drawer` result objectDrawer result = new DrawerBuilder()
              .withActivity(this)
              .withToolbar(toolbar)
              .addDrawerItems(
                  item1,        new DividerDrawerItem(),
                  item2,        new SecondaryDrawerItem().withName(R.string.drawer_item_settings)
              )
              .withOnDrawerItemClickListener(new Drawer.OnDrawerItemClickListener() {        @Override
                  public boolean onItemClick(View view, int position, IDrawerItem drawerItem) {            // do something with the clicked item :D
                  }
              })
              .build();
          瀏覽 26
          點(diǎn)贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報
          評論
          圖片
          表情
          推薦
          點(diǎn)贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  色婷婷小说 | 久久久九九 | 私拍视频网 | 伊人国产在线观看 | 欧美三级台湾三级少妇 |