<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>xuwei</author_name>
  <author_url>https://blog.hatena.ne.jp/xuwei/</author_url>
  <blog_title>xuwei-k's blog</blog_title>
  <blog_url>https://xuwei-k.hatenablog.com/</blog_url>
  <categories>
    <anon>java</anon>
    <anon>android</anon>
  </categories>
  <description>Javaの話です。Androidだと、普通xmlで画面を定義して、そのインスタンス生成するためにfindViewByIdというメソッドを使う。かなり多く使う。xmlで定義する時点で、型は(android.view.Viewのなんらかのサブクラスで)決まっているわけですが、それが必ず android.view.View 型で返ってくる。で、これ使いにくいし、ちょっと工夫すれば微妙に記述量減らせるんじゃないか？っていう話。たとえば、大体のサンプルを見ても*1 *1:まぁそれほどJavaのAndroidの経験長くないので、そんなにコード読んでないですが・・・</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxuwei-k.hatenablog.com%2Fentry%2F20120316%2F1331868246&quot; title=&quot;AndroidのfindViewByIdで型推論(?)させて、ちょっとだけ記述量減らす方法 - xuwei-k&amp;#39;s blog&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-03-16 12:24:06</published>
  <title>AndroidのfindViewByIdで型推論(?)させて、ちょっとだけ記述量減らす方法</title>
  <type>rich</type>
  <url>https://xuwei-k.hatenablog.com/entry/20120316/1331868246</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
