<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>s_welt</author_name>
  <author_url>https://blog.hatena.ne.jp/s_welt/</author_url>
  <blog_title>Schlechte Welt</blog_title>
  <blog_url>https://s-welt.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Android</anon>
  </categories>
  <description>やはりループは必須である。ということでループの仕方。 普通の携帯アプリとかならwhile()ループを使って実現すると思う。 けどAndroidのサンプルを見てるとHandlerを使うのが普通みたい。 今回のはサンプルにあるSnakeと同様にHandlerを拡張して使っている。 ソースは&quot;Invalidateで描画&quot;の時のやつを1秒ごとにプロットするようにしたもの。 あんまりループの意味無いかも。あるかも。 全てのサンプルを見たというわけではないので違う方法があるのかもしれない。 package net.swelt.android.looptest; import java.util.Rando…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fs-welt.hatenadiary.jp%2Fentry%2F20071114%2F1195000557&quot; title=&quot;Handlerでループループ - Schlechte Welt&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>2007-11-14 09:35:57</published>
  <title>Handlerでループループ</title>
  <type>rich</type>
  <url>https://s-welt.hatenadiary.jp/entry/20071114/1195000557</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
