<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hikeshiya</author_name>
  <author_url>https://blog.hatena.ne.jp/hikeshiya/</author_url>
  <blog_title>canvas</blog_title>
  <blog_url>https://hikeshiya.hatenablog.com/</blog_url>
  <categories>
    <anon>Android</anon>
    <anon>XML</anon>
  </categories>
  <description>ボタンの背景色を変更するためにbackgroudで色指定をするとRipple Effectが表示されなくなる。 backgroudを変更するとRipple Effectの設定が上書きされて無くなってしまうため、自分で設定しないといけない。 Ripple Effectとは ボタンを押したときに出る波紋状のエフェクトのこと。 Andoroid5.0ではRippleDrawableが導入され、実装が楽になった。 実装方法 ここではAndoroid5.0以降を対象に、RippleDrawableを利用して実装する。 やり方としては単純で、RippleDrawableを記述したXML(button_ri…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhikeshiya.hatenablog.com%2Fentry%2F2018%2F03%2F07%2F211558&quot; title=&quot;【Android】ボタンを押した時に波紋状のエフェクトを出す(Ripple Effect) - canvas&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-03-07 21:15:58</published>
  <title>【Android】ボタンを押した時に波紋状のエフェクトを出す(Ripple Effect)</title>
  <type>rich</type>
  <url>https://hikeshiya.hatenablog.com/entry/2018/03/07/211558</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
