• <tfoot id='0Epbn'></tfoot>

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

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

      1. <legend id='0Epbn'><style id='0Epbn'><dir id='0Epbn'><q id='0Epbn'></q></dir></style></legend>
      2. 替换已弃用图库的选项

        时间:2023-10-04

      3. <small id='FdfI2'></small><noframes id='FdfI2'>

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

              <bdo id='FdfI2'></bdo><ul id='FdfI2'></ul>

                <legend id='FdfI2'><style id='FdfI2'><dir id='FdfI2'><q id='FdfI2'></q></dir></style></legend>
                <tfoot id='FdfI2'></tfoot>

                  本文介绍了替换已弃用图库的选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我目前正在使用图库小部件来显示缩略图的滑动列表.每个缩略图都有一个背景颜色和一个文本覆盖.(这是一个颜色选择器).

                  但是,从 API 版本 16 开始,该库已被弃用..据我了解,API 版本大于 16 的手机不保证具有图库小部件.

                  我会使用 viewpager,但它一次只显示一个视图,我也想显示相邻的视图.水平滚动视图可以做到这一点,但它不会像画廊那样捕捉到最近的选项.

                  我查找了现有的小部件,但找不到.你对我应该选择什么小部件有什么建议吗?

                  解决方案

                  你试过coverflow吗?你可以使用这个.https://github.com/Polidea/android-coverflow 希望这对你有所帮助.p>

                  您还可以使用页面卷曲进行滑动.https://github.com/moritz-wundke/android-page-curl

                  I am currently using the Gallery widget to display a sliding list of thumbnails. Each thumbnail has a background colour and a text overlay. (It's a colour chooser).

                  However as of API version 16, the gallery is deprecated.. As I understand it, phones with API versions greater than 16 aren't guaranteed to have the gallery widget.

                  I would use a viewpager, but that only shows one view at a time, and I want to show adjacent views too. A horizontal scroll view may do it, but it won't snap to the nearest option like a gallery will.

                  I've looked for existing widgets, and can't find any. Do you have any suggestions as to what widget I should choose?

                  解决方案

                  Have you tried coverflow? You can use this. https://github.com/Polidea/android-coverflow Hope this might help you.

                  or

                  You can also use page curl for swipping. https://github.com/moritz-wundke/android-page-curl

                  这篇关于替换已弃用图库的选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:viewpager 页面中 mapview 的手势问题 下一篇:如何将viewpager放在android的片段中?

                  相关文章

                1. <tfoot id='yvfFr'></tfoot>

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

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