I want use two column in a ListView.
I think the current version(2.0.1) is supporting only one cell. Is there any solution?
I want use two column in a ListView.
I think the current version(2.0.1) is supporting only one cell. Is there any solution?
Honam Jeong wrote:
I want use two column in a ListView.
>
I think the current version(2.0.1) is supporting only one cell. Is there any solution?
Here is a custom class named SlidingMenGrid
http://brandonreynolds.com/blog/2011/01/09/cocos2d-sliding-menu-grid/
SlidingMenuGrid *menuGrid; CCArray *arr = CCArray::create(); for(int i=0; i<itemList.size(); i++) { CCMenuItemImage* asdf = CCMenuItemImage::create(itemList.at(i).imgName.c_str(), itemList.at(i).imgName.c_str(), this, menu_selector(ItemShop::onTouchMenuItem)); asdf->setTag(i); arr->addObject(asdf); } menuGrid = SlidingMenuGrid::menuWithArray(arr, itemList.size()/2, 2, res->convertPos(60, 280), res->convertPos(100, 100)); addChild(menuGrid);