- The added line is THIS COLOR.
- The deleted line is THIS COLOR.
[[戻る>Android]]
~
''[[戻る>Android]]''
~
*レイアウト [#sb77194a]
**ViewとViewGrpup [#y454ce88]
Viewの集まりをViewGroupという~
ViewGroupは複数のViewを含む~
ViewGroupの中にViewGroupを含むこともできる
**単位 [#ya5409d4]
利用可能な単位~
px (ピクセル)~
dp (密度非依存ピクセル)~
sp (倍率非依存ピクセル)~
in (インチ)~
mm (ミリメータ)
**レイアウトの種類 [#k84d3564]
-absolute layout 絶対座標指定
-relative layout 相対座標指定
-Linear layout 縦/横指定
-Table layout 表形式の配置
**Ansolute layout [#ye06868a]
工事中
**Relative layout [#t95a1616]
**Linear layout [#j52dd8c3]
縦に並べたり~
横に並べたり
**Table layout [#w8af4a08]
表形式に並べるレイアウト
&ref(tablelayout2.png);&ref(tablelayout.png);~
Outline 画面~
~
[[次世代創造機構>http://www.xn--rhq6sw9f0w7aevaf9ak89m.jp/android/androidLecture/GuiTutorial/GuiTutorial.html]]
ボタンのレイアウト~
http://www.javadrive.jp/android/xml_layout/index7.html
画面の作り方~
http://www.techfirm.co.jp/lab/android/view.html
Android Developer~
http://www.techdoctranslator.com/android/guide/ui/declaring-layout
*Viewのプロパティ [#tcf6cd7d]
[[参考 - Android Wiki>http://wikiwiki.jp/android/?UI%A5%B3%A5%F3%A5%DD%A1%BC%A5%CD%A5%F3%A5%C8%2FView]]
・nextFoxusDown - フォーカスが下方向に遷移した時の遷移先Viewを定義~
・padding - 上下左右のパディングを設定~
・scrollbarAlwaysDrawVerticalTrack - スクロールバーを表示するかどうか
**ViewGroupのプロパティ [#tcf6cd7d]
[[参考 - Android Wiki>http://wikiwiki.jp/android/?UI%A5%B3%A5%F3%A5%DD%A1%BC%A5%CD%A5%F3%A5%C8%2FViewGroup]]
** absolute layout [#ve727fc3]
***絶対座標の指定 [#kd3b4e95]
layout_x ~
layout_y ~
***部品の幅・高さ指定 [#rbcc265f]
layout_width~
layout_height~
fill_parentは最大サイズ。wrap_contentは最小サイズ
** Relative レイアウト [#xe4c85bc]
~
~
*縦向きレイアウトと横向きレイアウト [#z4bb8c77]
横向き画面には、"Layout-land"用フォルダを用意する。
#ref(layout-land.jpg);
~
~
[[戻る>Android]]
''[[戻る>Android]]''