Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 android-undergarment 库来创建侧边菜单,但我似乎无法弄清楚如何将项目添加到我提供给构造函数的列表视图布局中。任何帮助将不胜感激。
嗯,终于知道怎么做了。
ListView view = (ListView)mDrawerGarment.findViewById(R.id.sideMenuList); List<String> menuItems = new ArrayList<String>(); menuItems.add("One"); menuItems.add("two"); menuItems.add("three"); menuItems.add("four");