<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hyoromo</author_name>
  <author_url>https://blog.hatena.ne.jp/hyoromo/</author_url>
  <blog_title>hyoromoのブログ</blog_title>
  <blog_url>https://hyoromo.hatenablog.com/</blog_url>
  <categories>
    <anon>Android1.6</anon>
  </categories>
  <description>連番になっているリソースファイルをいちいちソースコードに書いていくのは邪魔くさい。て、人にオススメな方法。genディレクトリ下にあるR.javaファイルを直読みさせればおｋ 方法 R.javaファイルのパスを指定し、読み込みたいリソースファイルのある内部クラス*1を指定するとResouresIDが取得できます。 getResources().getIdentifier(&quot;リソースファイル名&quot;, &quot;Rファイルでのクラス名&quot;, &quot;Rファイルのパス名&quot;); 例 ここでは upload_0, upload_1, ... などの画像ファイルをforで回して取得する事を想定してます。 getResourc…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhyoromo.hatenablog.com%2Fentry%2F20100123%2F1264221657&quot; title=&quot;リソースを動的に読み込んでみたよ - hyoromoのブログ&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>2010-01-23 13:40:57</published>
  <title>リソースを動的に読み込んでみたよ</title>
  <type>rich</type>
  <url>https://hyoromo.hatenablog.com/entry/20100123/1264221657</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
