ViewUpdate中的CameraUpdate,SupportMapFragment,第二次没有加载

时间:2016-02-08 18:03:23

标签: android android-viewpager android-maps-v2

当我将SupportMapFragment放在一个包含5个标签的viewpager中的片段中时,我遇到了问题,当viewpager第一次加载地图时,一切正常,但是没有显示从另一个标签返回的内容。我按如下方式加载地图:

Variables set by pandoc
   Some variables are set automatically by pandoc.  These vary somewhat depending  on  the
   output format, but include metadata fields as well as the following:

   title, author, date
          allow identification of basic aspects of the document.  Included in PDF metadata
          through LaTeX and ConTeXt.  These can be set through a pandoc title block, which
          allows for multiple authors, or through a YAML metadata block:

                 ---
                 author:
                 - Aristotle
                 - Peter Abelard
                 ...

   subtitle
          document subtitle; also used as subject in PDF metadata

   abstract
          document summary, included in LaTeX, ConTeXt, AsciiDoc, and Word docx

   keywords
          list  of  keywords  to  be  included in HTML, PDF, and AsciiDoc metadata; may be
          repeated as for author, above

   header-includes
          contents specified by -H/--include-in-header (may have multiple values)

   toc    non-null value if --toc/--table-of-contents was specified

   toc-title
          title of table of contents (works only with EPUB and docx)

   include-before
          contents specified by -B/--include-before-body (may have multiple values)

   include-after
          contents specified by -A/--include-after-body (may have multiple values)

   body   body of document

然后像:

一样使用它

DELETE Students FROM Students s LEFT JOIN Students_Import si ON (s.LastName = si.LastName AND s.FirstName = si.FirstName AND s.BornDate = si.BornDate) WHERE s.LastName IS NULL;

任何人都面临同样的问题?提前致谢

1 个答案:

答案 0 :(得分:1)

替换FragmentManager fm = getFragmentManager(); FragmentManager fm = getChildFragmentManager();解决了问题。