<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shin-emon-san</author_name>
  <author_url>https://blog.hatena.ne.jp/shin-emon-san/</author_url>
  <blog_title>shin-emon-sanのブログ</blog_title>
  <blog_url>https://acolyte.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>AndroidのGridViewを使っていて、adapterのgetViewにてネット中のファイルをDLしsetImageViewしようとするとき、しばしばDLするThreadかAsyncTaskの最後で実行すると思う。 このとき、setImageBitmapをUIスレッドで実行させるため、Handler.postを使うとなぜかgetViewのposition 0が再度呼ばれるらしい。 実は、UIスレッドでないスレッドからでもsetImageBitmapは例外を出すことなく呼べてので、こうしてやるとこの症状は収まる。 まあ、本当はgetViewが何度呼ばれても問題ないように作るべきなんだろうけ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Facolyte.hatenablog.com%2Fentry%2F2012%2F01%2F29%2F024304&quot; title=&quot;[android]GridView使用時、getViewのposition 0がスクロール時に都度呼びだされる問題 - shin-emon-sanのブログ&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-01-29 02:43:04</published>
  <title>[android]GridView使用時、getViewのposition 0がスクロール時に都度呼びだされる問題</title>
  <type>rich</type>
  <url>https://acolyte.hatenablog.com/entry/2012/01/29/024304</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
