<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>letitride</author_name>
  <author_url>https://blog.hatena.ne.jp/letitride/</author_url>
  <blog_title>追憶行</blog_title>
  <blog_url>https://www.letitride.jp/</blog_url>
  <categories>
    <anon>テック</anon>
    <anon>テック-Android</anon>
  </categories>
  <description>ViewPagerで表示されているFragmentによって、不要なActionBar Itemがある場合に非表示とする。 Itemオブジェクトの保存 MenuItem生成時に表示制御を行いたいItemをメンバとして記録しておく。lateinitで宣言すると、ViewPagerに渡した時にまだ初期化されていないので、Optionalで宣言する。 var icon:MenuItem? = null override fun onCreateOptionsMenu(menu: Menu?): Boolean { getMenuInflater().inflate(R.menu.main_item, …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.letitride.jp%2Fentry%2F2019%2F07%2F17%2F120619&quot; title=&quot;Android ViewPagerで表示されたFragmentによって、ActionBar Itemの表示を切り替える - 追憶行&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>https://cdn-ak.f.st-hatena.com/images/fotolife/l/letitride/20190717/20190717121045.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-07-17 12:06:19</published>
  <title>Android ViewPagerで表示されたFragmentによって、ActionBar Itemの表示を切り替える</title>
  <type>rich</type>
  <url>https://www.letitride.jp/entry/2019/07/17/120619</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
