<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                > 編寫: [roya](https://github.com/RoyaAoki) 原文:[https://developer.android.com/training/wearables/ui/2d-picker.html](https://developer.android.com/training/wearables/ui/2d-picker.html) Android Wear中的[2D Picker](https://developer.android.com/design/wear/structure.html#2DPicker)模式允許用戶像換頁一樣從一組項目中導航和選擇。 要實現這個模式,你需要添加一個 _GridViewPager_ 元素到你的[activity](# "An activity represents a single screen with a user interface.")的layout中然后實現一個繼承 _FragmentGridPagerAdapter_類的adapter以提供一組頁面。 > **Note:** Android SDK中的_GridViewPager_例子示范了如何在你的apps中使用 _GridViewPager_ layout。這個例子的位置在 _android-sdk/samples/android-20/wearable/GridViewPager_目錄中。 ### 添加Page Grid 像下面一樣添加一個 _GridViewPager_ 元素到你的layout描述文件: ~~~ <android.support.wearable.view.GridViewPager xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/pager" android:layout_width="match_parent" android:layout_height="match_parent" /> ~~~ 你可以使用任何[定義Layouts](https://developer.android.com/training/wearables/ui/layouts.html)技術以保證你的2D picker可以工作在圓形和方形兩種設備上。 ### 實現Page Adapter Page Adapter提供一組頁面以填充 _GridViewPager_ 部件。要實現這個adapter,你需要繼承Wearable UI Library中的 _FragmentGridPageAdapter_ 類。 舉個例子
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看