<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>buchi_orz</author_name>
  <author_url>https://blog.hatena.ne.jp/buchi_orz/</author_url>
  <blog_title>備忘録 〜プログラミング〜</blog_title>
  <blog_url>https://buchi.hatenablog.com/</blog_url>
  <categories>
    <anon>android</anon>
  </categories>
  <description>簡単な事なのですが、忘れがちなのでメモ。 xml上では、こちら。 android:orientation=&quot;horizontal&quot; コード上では、こちら。 LinearLayout sample = new LinearLayout(this); sample.setOrientation(LinearLayout.HORIZONTAL); LinearLayout.LayoutParamを使用して変更するのかと思っていましたが、こちらはmarginなどを変更するときに。 Layout orientation in code android - Layout orientation in co…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbuchi.hatenablog.com%2Fentry%2F2015%2F01%2F21%2F152333&quot; title=&quot;LinearLayoutのOrientationをコード上で変更する - 備忘録 〜プログラミング〜&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>2015-01-21 15:23:33</published>
  <title>LinearLayoutのOrientationをコード上で変更する</title>
  <type>rich</type>
  <url>https://buchi.hatenablog.com/entry/2015/01/21/152333</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
