如何使用Android的内衣库 [英] How to use android-undergarment library

查看:193
本文介绍了如何使用Android的内衣库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Android的内衣库中创建一个侧面菜单,但我似乎并没有能够弄清楚如何将项目添加到我提供给构造列表视图布局。任何帮助将AP preciated。

I am trying to use the android-undergarment library to create a side menu but I don't seem to be able to figure out how to add items to the listview layout I supplied to the constructor. Any help will be appreciated.

推荐答案

好了,终于找到了如何做到这一点。

Well, finally found out how to do it.

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");

这篇关于如何使用Android的内衣库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆