• <i id='0eagj'><tr id='0eagj'><dt id='0eagj'><q id='0eagj'><span id='0eagj'><b id='0eagj'><form id='0eagj'><ins id='0eagj'></ins><ul id='0eagj'></ul><sub id='0eagj'></sub></form><legend id='0eagj'></legend><bdo id='0eagj'><pre id='0eagj'><center id='0eagj'></center></pre></bdo></b><th id='0eagj'></th></span></q></dt></tr></i><div id='0eagj'><tfoot id='0eagj'></tfoot><dl id='0eagj'><fieldset id='0eagj'></fieldset></dl></div>
        <bdo id='0eagj'></bdo><ul id='0eagj'></ul>

        <legend id='0eagj'><style id='0eagj'><dir id='0eagj'><q id='0eagj'></q></dir></style></legend>

      1. <tfoot id='0eagj'></tfoot>

        <small id='0eagj'></small><noframes id='0eagj'>

      2. 如何在 COCOS2d Android 中使用 CClistview?

        How can I use CClistview in COCOS2d Android?(如何在 COCOS2d Android 中使用 CClistview?)
          <tfoot id='Pyfw4'></tfoot><legend id='Pyfw4'><style id='Pyfw4'><dir id='Pyfw4'><q id='Pyfw4'></q></dir></style></legend>

            <small id='Pyfw4'></small><noframes id='Pyfw4'>

            <i id='Pyfw4'><tr id='Pyfw4'><dt id='Pyfw4'><q id='Pyfw4'><span id='Pyfw4'><b id='Pyfw4'><form id='Pyfw4'><ins id='Pyfw4'></ins><ul id='Pyfw4'></ul><sub id='Pyfw4'></sub></form><legend id='Pyfw4'></legend><bdo id='Pyfw4'><pre id='Pyfw4'><center id='Pyfw4'></center></pre></bdo></b><th id='Pyfw4'></th></span></q></dt></tr></i><div id='Pyfw4'><tfoot id='Pyfw4'></tfoot><dl id='Pyfw4'><fieldset id='Pyfw4'></fieldset></dl></div>
              <tbody id='Pyfw4'></tbody>

            • <bdo id='Pyfw4'></bdo><ul id='Pyfw4'></ul>

                • 本文介绍了如何在 COCOS2d Android 中使用 CClistview?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  I am working on a cocos2d game. In this game, I have to display a score level-wise:

                  ==================================================
                  Level          Score
                   1              500
                   2              600
                   3              900
                  

                  I want to use the cclistview in my game. Does anyone have an idea about cclistview and how it's used in Android cocos2d?

                  解决方案

                  I think you are confusing cocos2d for android and cocos2d-x as same sdk. I don't know of any cclistview in Cocos2d. There is one CCTableView in cocos2d. You can find its implementation in the cocos2d library itself. The package org.cocos2d.extension.scroll contains a class CCTableView. You can check its implementation in org.cocos2d.extension.scroll.tests.

                  One other way is to inflate native views from android itself like this:

                     gameActivity.addContentView(view, new LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.MATCH_PARENT));    //where gameActivity is an instance of my Activity and view is any inflated layout like this
                  
                  view = (LinearLayout)LayoutInflater.from(gameActivity).inflate(R.layout.some_listview_layout, null);
                  

                  这篇关于如何在 COCOS2d Android 中使用 CClistview?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Cocos2d - How to check for Intersection between objects in different layers(Cocos2d - 如何检查不同层中对象之间的交集)
                  Highlight Read-Along Text (in a storybook type app for iPhone)(突出显示朗读文本(在 iPhone 的故事书类型应用程序中))
                  Cocos2D + Disabling only Retina iPad Graphics(Cocos2D + 仅禁用 Retina iPad 图形)
                  Proper cocos2d scene restart?(正确的 cocos2d 场景重启?)
                  [ios.cocos2d+box2d]how to disable auto-rotation?([ios.cocos2d+box2d]如何禁用自动旋转?)
                  Game center facebook like(游戏中心 facebook 喜欢)

                        <tbody id='9Ss0Q'></tbody>

                        <small id='9Ss0Q'></small><noframes id='9Ss0Q'>

                          <bdo id='9Ss0Q'></bdo><ul id='9Ss0Q'></ul>
                        • <legend id='9Ss0Q'><style id='9Ss0Q'><dir id='9Ss0Q'><q id='9Ss0Q'></q></dir></style></legend>

                          • <i id='9Ss0Q'><tr id='9Ss0Q'><dt id='9Ss0Q'><q id='9Ss0Q'><span id='9Ss0Q'><b id='9Ss0Q'><form id='9Ss0Q'><ins id='9Ss0Q'></ins><ul id='9Ss0Q'></ul><sub id='9Ss0Q'></sub></form><legend id='9Ss0Q'></legend><bdo id='9Ss0Q'><pre id='9Ss0Q'><center id='9Ss0Q'></center></pre></bdo></b><th id='9Ss0Q'></th></span></q></dt></tr></i><div id='9Ss0Q'><tfoot id='9Ss0Q'></tfoot><dl id='9Ss0Q'><fieldset id='9Ss0Q'></fieldset></dl></div>

                          • <tfoot id='9Ss0Q'></tfoot>