<?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>何かのwidgetを継承して作ったクラスならlayoutに定義できるようです。 やりかた まずは何かのwidgetを継承したクラスを用意します。今回はメンドウなのでviewを2つ用意しました。 public class HogeView1 extends View { public HogeView1(Context context, AttributeSet attrs) { super(context, attrs); setFocusable(true); } /** * 描画処理 */ protected void onDraw(Canvas canvas) { super.onDra…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhyoromo.hatenablog.com%2Fentry%2F20100104%2F1262613512&quot; title=&quot;独自クラスをLayoutに定義してみたよ - 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>http://farm5.static.flickr.com/4061/4244767934_c0be2d349b.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-01-04 22:58:32</published>
  <title>独自クラスをLayoutに定義してみたよ</title>
  <type>rich</type>
  <url>https://hyoromo.hatenablog.com/entry/20100104/1262613512</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
