<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>dai4649</author_name>
  <author_url>https://blog.hatena.ne.jp/dai4649/</author_url>
  <blog_title>プログラマってこんなかんじ？？</blog_title>
  <blog_url>https://daichan4649.hatenablog.jp/</blog_url>
  <categories>
    <anon>Android</anon>
  </categories>
  <description>お題 画面回転させて、縦/横で別のレイアウトを表示する 縦画面のときは ListView を表示 横画面のときは GridView を表示(1行2列) ただし、一度取得したデータは使いまわしたい 縦画面 横画面 実装のポイント Activity コンフィグ変更のたびに毎回 再生成 Fragment Fragment#setRetainInstance(true) を設定し、Activity 再生成時に Fragment は再生成されないようにする(Fragment#onCreate/onDestroy を抑止) Activity 再生成のたびに走る Fragment#onCreateView …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdaichan4649.hatenablog.jp%2Fentry%2F2012%2F07%2F04%2F020316&quot; title=&quot;画面回転してもFragment再生成しないでレイアウト変更したい＋取得したデータ使い回したい - プログラマってこんなかんじ？？&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://cdn-ak.f.st-hatena.com/images/fotolife/d/dai4649/20120704/20120704014336.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-07-04 02:03:16</published>
  <title>画面回転してもFragment再生成しないでレイアウト変更したい＋取得したデータ使い回したい</title>
  <type>rich</type>
  <url>https://daichan4649.hatenablog.jp/entry/2012/07/04/020316</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
