<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hik0leaf</author_name>
  <author_url>https://blog.hatena.ne.jp/hik0leaf/</author_url>
  <blog_title>Re: note</blog_title>
  <blog_url>https://hikoleaf.hatenablog.jp/</blog_url>
  <categories>
    <anon>Android</anon>
  </categories>
  <description>LiveDataを使ってデータをViewに即座に反映させる方法はお馴染みですが、ViewからViewModelへリアクティブに制御する事例はまだ少ないため、ここではMediatorLiveDataを使ってその機能を実装してみたいと思います。 コードは以下の記事を参考にさせていただきました。ありがとうございます。 qiita.com コード まずはレイアウトです。 activity_main.xml &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;layout xmlns:android=&quot;http://schemas.android.com/apk/res/an…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhikoleaf.hatenablog.jp%2Fentry%2F2020%2F05%2F05%2F235202&quot; title=&quot;【Android】LiveDataを使った双方向Data Binding - Re: note&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/h/hik0leaf/20200505/20200505225329.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-05-05 23:52:02</published>
  <title>【Android】LiveDataを使った双方向Data Binding</title>
  <type>rich</type>
  <url>https://hikoleaf.hatenablog.jp/entry/2020/05/05/235202</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
