久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

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

        <bdo id='Zjbu3'></bdo><ul id='Zjbu3'></ul>
      <legend id='Zjbu3'><style id='Zjbu3'><dir id='Zjbu3'><q id='Zjbu3'></q></dir></style></legend>

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

      1. 如何在 DialogFragment 中顯示現有的 ListFragment

        How to display an existing ListFragment in a DialogFragment(如何在 DialogFragment 中顯示現有的 ListFragment)

          <tfoot id='njKwJ'></tfoot>
            <tbody id='njKwJ'></tbody>

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

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

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

                  <i id='njKwJ'><tr id='njKwJ'><dt id='njKwJ'><q id='njKwJ'><span id='njKwJ'><b id='njKwJ'><form id='njKwJ'><ins id='njKwJ'></ins><ul id='njKwJ'></ul><sub id='njKwJ'></sub></form><legend id='njKwJ'></legend><bdo id='njKwJ'><pre id='njKwJ'><center id='njKwJ'></center></pre></bdo></b><th id='njKwJ'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='njKwJ'><tfoot id='njKwJ'></tfoot><dl id='njKwJ'><fieldset id='njKwJ'></fieldset></dl></div>
                  本文介紹了如何在 DialogFragment 中顯示現有的 ListFragment的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我有以下問題:

                  我有一個現有的 ListFragment,但我想將其顯示為對話框.

                  I have an exisiting ListFragment, but I would like to display this as a dialog.

                  我的第一種方法是創建一個 DialogFragment,它必須在其中 ListFragment,但目前似乎無法將片段放入片段中.

                  My first approach was to create a DialogFragment which has to ListFragment inside of it, but appearently it is currently not possible to put fragments in fragments.

                  擴展 DialogFragment 而不是 ListFragment 也是不可能的,因為大量使用了 ListFragment 方法.

                  Extending DialogFragment instead of ListFragment is also not possible, because of the heavy use of ListFragment methods.

                  有沒有簡單的方法可以做到這一點?

                  Is there an easy way to do this?

                  推薦答案

                  對我有用的是

                  1) 在 DialogFragment 的 xml 布局中調用,比如說 DialogFragmentwWithListFragment 指定 ListFragment 類
                  例如.dialog_fragment_with_list_fragment.xml:

                  What works for me is

                  1) in xml layout for your DialogFragment called, let's say, DialogFragmentwWithListFragment specify ListFragment class
                  E.g. dialog_fragment_with_list_fragment.xml :

                  <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                          android:layout_width="match_parent"
                          android:layout_height="match_parent">
                          <fragment
                               android:id="@+id/flContent"
                               android:layout_width="match_parent"
                               android:layout_height="match_parent"
                               android:padding = "10dp"
                               class="com.xxx.yyy.DialogFragmentwWithListFragment " />
                  </LinearLayout>
                  

                  2)DialogFragmentwWithListFragment 中膨脹 dialog_fragment_with_list_fragment.xml

                  @Override
                  public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
                      return inflater.inflate(R.layout.dialog_fragment_with_list_fragment, null);
                  }
                  

                  3) 調用 DialogFragmentwWithListFragment 作為常規 DialogFragment:

                  3) invoke DialogFragmentwWithListFragment as regular DialogFragment:

                   DialogFragmentwWithListFragment dialogFragment = DialogFragmentwWithListFragment  .newInstance();
                   dialogFragment.setRetainInstance(true);
                   dialogFragment.show(getFragmentManager(), "tag");
                  


                  希望,它會有所幫助.


                  Hope, it helps.

                  這篇關于如何在 DialogFragment 中顯示現有的 ListFragment的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Get user#39;s current location using GPS(使用 GPS 獲取用戶的當前位置)
                  IllegalArgumentException thrown by requestLocationUpdate()(requestLocationUpdate() 拋出的 IllegalArgumentException)
                  How reliable is LocationManager#39;s getLastKnownLocation and how often is it updated?(LocationManager 的 getLastKnownLocation 有多可靠,多久更新一次?)
                  How to detect Location Provider ? GPS or Network Provider(如何檢測位置提供者?GPS 或網絡提供商)
                  Get current location during app launch(在應用啟動期間獲取當前位置)
                  locationManager.getLastKnownLocation() return null(locationManager.getLastKnownLocation() 返回 null)

                      <tfoot id='4sqjn'></tfoot>

                      <small id='4sqjn'></small><noframes id='4sqjn'>

                        1. <legend id='4sqjn'><style id='4sqjn'><dir id='4sqjn'><q id='4sqjn'></q></dir></style></legend>
                            <tbody id='4sqjn'></tbody>
                          • <bdo id='4sqjn'></bdo><ul id='4sqjn'></ul>

                          • <i id='4sqjn'><tr id='4sqjn'><dt id='4sqjn'><q id='4sqjn'><span id='4sqjn'><b id='4sqjn'><form id='4sqjn'><ins id='4sqjn'></ins><ul id='4sqjn'></ul><sub id='4sqjn'></sub></form><legend id='4sqjn'></legend><bdo id='4sqjn'><pre id='4sqjn'><center id='4sqjn'></center></pre></bdo></b><th id='4sqjn'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='4sqjn'><tfoot id='4sqjn'></tfoot><dl id='4sqjn'><fieldset id='4sqjn'></fieldset></dl></div>
                            主站蜘蛛池模板: 美女福利网站 | 国产一区二区三区四区三区四 | 蜜臀久久99精品久久久久久宅男 | 国产欧美日韩综合精品一区二区 | 97av视频在线 | 男女羞羞在线观看 | 亚洲 中文 欧美 日韩 在线观看 | 伊人伊成久久人综合网站 | 久久久久国产精品一区 | 精品亚洲永久免费精品 | 久久国产一区二区三区 | 欧美日韩一二三区 | 九九色综合 | 久久精品国产一区老色匹 | 日本一区二区视频 | 亚洲成人精品一区 | 欧美区日韩区 | 高清不卡毛片 | av一级| 国产精品一区二区免费 | 国产视频二区在线观看 | 韩国成人在线视频 | 欧美精品一区二区三区四区五区 | 在线视频成人 | 久久久久久国产 | 欧美一区二区 | 蜜桃黄网| 久久精品99 | 亚洲激精日韩激精欧美精品 | 日韩日b视频| 久久精品一级 | 亚洲精品一区二区三区蜜桃久 | 国产精品久久久久久久久久久久久 | 天天搞夜夜操 | 亚洲成人www | 久热免费在线 | 国产不卡视频在线 | 午夜视频在线观看网址 | 99久久精品免费看国产四区 | 人人擦人人 | 超碰97免费|