• <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?

        时间:2024-08-12
          <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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:CCMenuItem字体颜色变化 下一篇:如果横幅移动,iAd 横幅不可点击

                  相关文章

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

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

                    2. <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>
                    3. <tfoot id='9Ss0Q'></tfoot>