久久久久久久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>
                            主站蜘蛛池模板: 国产乱码精品一区二区三区五月婷 | 久久国产精品免费视频 | 国产视频日韩 | 亚洲91视频 | 天天玩夜夜操 | 日韩在线欧美 | 亚洲精品无人区 | 久草视频观看 | 国产视频在线一区二区 | 91在线观看免费 | 99亚洲综合 | 亚洲欧美视频一区 | 久久一区二区视频 | 亚洲字幕在线观看 | 亚洲欧洲精品在线 | 欧美精品一级 | 日韩欧美视频 | 日韩在线小视频 | 日韩精品1区2区3区 爱爱综合网 | 美女久久久久久久久 | 亚洲国产精品久久 | 欧美在线精品一区 | 国产乱码精品一区二区三区忘忧草 | 日韩成人在线观看 | 久久久久99| 高清国产午夜精品久久久久久 | 国产成人精品一区二区三区 | 亚洲欧美综合精品另类天天更新 | 亚洲国产成人精品女人久久久 | 成人深夜福利网站 | 成人午夜免费视频 | 国产美女在线观看 | 天天看夜夜 | 亚洲精品乱码久久久久久久久久 | 日韩av网址在线观看 | 国产一区在线视频 | 久久精品二区亚洲w码 | 免费精品久久久久久中文字幕 | avtt国产| 高清视频一区二区三区 | 国产成人精品a视频一区www |