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

  • <legend id='JET6a'><style id='JET6a'><dir id='JET6a'><q id='JET6a'></q></dir></style></legend>

    1. <tfoot id='JET6a'></tfoot>
        <bdo id='JET6a'></bdo><ul id='JET6a'></ul>

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

        如何使网格视图在android中水平滚动而不是垂直滚动?

        时间:2023-07-28
          • <bdo id='xjy3t'></bdo><ul id='xjy3t'></ul>
              <tfoot id='xjy3t'></tfoot>

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

              1. <legend id='xjy3t'><style id='xjy3t'><dir id='xjy3t'><q id='xjy3t'></q></dir></style></legend>

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

                  本文介绍了如何使网格视图在android中水平滚动而不是垂直滚动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  I have a dynamic Grid View. Means its content varies. So, if the number of items increases it makes vertical scroll. I want to make it as horizontal scroll.

                  Please suggest some solution for this.

                  解决方案

                  You can try putting the GridView in a HorizontalScrollView. You may try to set fixed height to the GridView inside the HorizontalScrollView.

                  Then you can dynamically calculate the number of columns of the GridView based on your content and use setNumColumns(int) method to set it.

                  这篇关于如何使网格视图在android中水平滚动而不是垂直滚动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:未使用 firebase 和 Objective C 接收推送通知 下一篇:协议和代表之间的区别?

                  相关文章

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

                1. <legend id='ag7Ph'><style id='ag7Ph'><dir id='ag7Ph'><q id='ag7Ph'></q></dir></style></legend>

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

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