<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中水平滚动而不是垂直滚动?

        How to make grid view scroll horizontally not vertically in android?(如何使网格视图在android中水平滚动而不是垂直滚动?)
          • <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中水平滚动而不是垂直滚动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  When does a FCM token expire?(FCM 令牌何时到期?)
                  Firebase Cloud Messaging (FCM) - Launch Activity when user clicks the notification with extras(Firebase Cloud Messaging (FCM) - 当用户点击带有附加功能的通知时启动活动)
                  Implement Firebase inside of a Library(在库中实现 Firebase)
                  Firebase Backward compatibility with GCM(Firebase 与 GCM 的向后兼容性)
                  Receiving the FCM notifications multiple times on Nougat(在 Nougat 上多次接收 FCM 通知)
                  Firebase FCM MismatchSenderID(Firebase FCM 不匹配SenderID)

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

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

                    <tbody id='ag7Ph'></tbody>
                      • <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>
                          • <tfoot id='ag7Ph'></tfoot>