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

      <legend id='sqH08'><style id='sqH08'><dir id='sqH08'><q id='sqH08'></q></dir></style></legend>

      1. <small id='sqH08'></small><noframes id='sqH08'>

        尽快将 PageTransformer 应用到 PagerView

        时间:2023-10-04
        <legend id='G4vEN'><style id='G4vEN'><dir id='G4vEN'><q id='G4vEN'></q></dir></style></legend><tfoot id='G4vEN'></tfoot>
          • <bdo id='G4vEN'></bdo><ul id='G4vEN'></ul>
                <tbody id='G4vEN'></tbody>

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

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

                1. 本文介绍了尽快将 PageTransformer 应用到 PagerView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个应用于 ViewPager 的 PageTransfomer,效果很好,但我想在将 PageTransformer 设置为 ViewPager 后立即启动页面的转换.我已经试过了:

                  I have a PageTransfomer applied to a ViewPager, it works great but I want to launch the page's transformation as soon as I set the PageTransformer to the ViewPager. I already tried:

                  • setCurrentItem(int)
                  • setCurrentItem(int, true)
                  • beginFakeDrag()、fakeDragBy(float)、endFakeDrag()
                  • 无效()
                  • getAdapter().notifyDataSetChanged()

                  我已经在我的活动的 onCreate 中尝试了所有这些,但也许我错了.

                  I've tried all these in the onCreate of my activity but maybe I'm wrong.

                  有人知道吗?

                  谢谢

                  推荐答案

                  尝试以下方法之一:

                  1. 将代码放入onPostCreate()
                  2. 将代码放入处理程序;即 new Handler().post(new Runnable() {/* 你的代码 *
                    <tbody id='RBumB'></tbody>
                    <legend id='RBumB'><style id='RBumB'><dir id='RBumB'><q id='RBumB'></q></dir></style></legend>
                      <bdo id='RBumB'></bdo><ul id='RBumB'></ul>

                        • <tfoot id='RBumB'></tfoot>

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

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