<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yujimny</author_name>
  <author_url>https://blog.hatena.ne.jp/yujimny/</author_url>
  <blog_title>YUJimny備忘録</blog_title>
  <blog_url>https://yujimny.hatenadiary.org/</blog_url>
  <categories>
    <anon>Android</anon>
  </categories>
  <description>といってもシチュエーションは限定的であんまり同じ状況に遭遇することは多くないと思うが、setCompoundDrawables()やsetCompoundDrawablesWithIntrinsicBounds()を連続して呼び出している場合に注意。上記メソッドはソースコードを見ればわかるが、内部でinvalidate()とrequestLayout()を呼び出していて、ループの中で呼び出したりするとinvalidate()によるonDraw()などの描画処理が毎回呼び出されてしまうのでこれがボトルネックになる。私の場合、50個のTextViewに毎回Drawableをセットしていたら50個回…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyujimny.hatenadiary.org%2Fentry%2F20120503%2F1336035822&quot; title=&quot;パフォーマンスチューニング【TextView編】 - YUJimny備忘録&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>2012-05-03 18:03:42</published>
  <title>パフォーマンスチューニング【TextView編】</title>
  <type>rich</type>
  <url>https://yujimny.hatenadiary.org/entry/20120503/1336035822</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
