Edit of
Android Layout
[
Front page
] [
Edit
|
Diff
|
Backup
|
Upload
|
Reload
] [
New
|
List of pages
|
Search
|
Recent changes
|
Help
]
-- Use page as template --
ALP
Acquisition of terminal information
Android Activity
Android App. Widget
Android AppWidget
Android Build
Android Button
Android Buttonの属性
Android Camera
Android Change Icon
Android Check Box
Android Content Provier
Android DDMS
Android Data
Android Debug
Android Design
Android Dialog
Android Digital Signature
Android Distribution
Android Edit Text
Android Environment
Android Event Handling
Android File Access
Android GUI
Android GUI部品
Android Graphic
Android Image
Android ImageView
Android Intent
Android Internationalization
Android Layout
Android List View
Android Log
Android Memory
Android Menu
Android Mobile Ads
Android Movie
Android Music
Android Network
Android Notification
Android Open GL
Android Preference
Android Radio Button
Android Resource
Android SDK
Android Screen Transition
Android Security
Android Sensor
Android Service
Android Telephony
Android Text display
Android TextViewの属性
Android Toast
Android Touch Event
Android URI
Android View
Android Viewの属性
Android Volume Settings
Android Widget
Android directory composition
Android その他 デバイス
Android アプリウィジェット
Android アプリケーションへのデジタル署名
Android ダイアログ
Android デバッグ
Android バックライト
Android ファイルシステム
Android マニフェストファイル
Android ログ
Android 乱数を生成
Android 方位センサー
Android 標準アプリ動作
Android 気をつけたい動作
Android 画面の向き
Android 製品動向
Android 製品動向 - 端末一覧
Android 顔認識
Android Widget拡張
Android-GAEé£æº
Android-GAE連携
Android2
Architecture Overview
BracketName
Criteria In philadelphia truck accident - Guidelines
Doja
Doja Tips
Establishing Fast Methods For personal injury philadelphia
FormattingRules
FrontPage
Google App Engine
Help
InterWiki
InterWikiName
InterWikiSandBox
Introduction to Android
LevelHeadedPlansOfBurnsSomeUsefulGuidance
Limo
Media
MeeGo
MenuBar
Mobile App 入門
Mobile Application Guide
Mobile Application 入門
Open GL ES
Open+GL+ES
PHP
PrimaryAspectsForShoulderDystociaObtainingHelp
PukiWiki
PukiWiki/1.4
PukiWiki/1.4/Manual
PukiWiki/1.4/Manual/Plugin
PukiWiki/1.4/Manual/Plugin/A-D
PukiWiki/1.4/Manual/Plugin/E-G
PukiWiki/1.4/Manual/Plugin/H-K
PukiWiki/1.4/Manual/Plugin/L-N
PukiWiki/1.4/Manual/Plugin/O-R
PukiWiki/1.4/Manual/Plugin/S-U
PukiWiki/1.4/Manual/Plugin/V-Z
SandBox
Some Facts For 2012 - Central Elements For jacksonville beach real estate listings
Some Helpful Considerations On Factors Of philadelphia truck accident attorney
ThePossibilitiesForItemsOfbocaratoncaraccidentlawyer
WikiEngines
WikiName
WikiWikiWeb
YukiWiki
チェックボックスAndroid チェックボックス
''[[MobileApp>Mobile Application Guide]]'' > ''[[Android>Introduction to Android]]'' > ''Layout'' ~ ~ *Layout's Overview [#sb77194a] The UI of application can be set by the combination of View and ViewGroup. ~ ~ **View and ViewGroup [#y454ce88] ・The set of Veiw is ViewGroup. ~ ・ViewGroup contains two or more View. ~ ・ViewGroup can be contained in ViewGroup. ~ ・The layout inherit ViewGroup. ~ ※Refer to the following succession charts for the practical visualization. ~ **ViewGroup surrounding Class [#b370a8dc] "ViewGroup" and its succession relations are described as follows. &ref(ViewGroup.gif,nolink); ~ *Kind of layout [#k84d3564] ~ Typical View-Groups (layouts) are described as follows. #style(class=table_left){{ |Ⅰ| Absolute layout | The layout placement which specifies the absolute coordinate. | |Ⅱ| Relative layout | The layout placement which specifies the relative coordinate. | |Ⅲ| Linear layout | Horizontal direction and the vertical direction can be specified. | |Ⅳ| Table layout | The table form can be arranged. | |Ⅴ| Frame layout | Overlapping the VIEW is possible. | || the others || ~ **Ⅰ.Absolute layout [#ye06868a] ・Layout specified by using [absolute coordinate]~ ・It became non-recommendation from SDK1.5. (Because this layout cannot support multiple devices for different screen sizes.) ~ &ref(absolute.gif,nolink); &ref(absolute2.gif,nolink);~ ~ ***XML attribute which absolute coordinate is specified in [#kd3b4e95] layout_x ~ layout_y ~ ~ ***XML attribute which width and height of parts are specified in[#rbcc265f] layout_width~ layout_height~ fill_parent is MAX size. wrap_content is minimum size. ~ ~ **Ⅱ.Relative layout [#t95a1616] Layout which specify the relative position of widget. Can be specified placed in the top or bottom.~ ~ &ref(relative.gif,nolink);&ref(relative2.gif,nolink);~ 「基準の位置を変更すれば、それに伴いほかのウィジェットも自動的に位置が調整できる」「斜めや円形にも配置が可能」というメリットがある一方、~ 「気軽にウィジェットを追加・削除できない」、「どのようにリレーションさせているか分からなくなってしまう」という点がデメリット。 ~ ~ **Ⅲ.Linear layout [#j52dd8c3] Liner Layout is the layout which arrange widgets at straight vertical or horizontal. &ref(liner.gif,nolink); &ref(liner2.gif,nolink);~ ~ ~ **Ⅳ.Table layout [#w8af4a08] This layout can arranged widget in a tabular. &ref(tablelayout2.png,nolink); &ref(tablelayout.png,nolink);~ Outline Screen~ ~ ~ ~ ~ **Ⅴ.Frame layout [#p1539b7e] Frame layout is easy to use when stacking the View.~ For example, when overlaying images is available. ~ &ref(FrameLayout01.gif,nolink); &ref(FrameLayout02.gif,nolink);~ Outline Screen~ ~ ~ ~ *Practical use [#x63c4c9f] **Half-and-half [#ycf583ce] &ref(hanbun.png); ~ If you want to set half-and-half to buttons layout ,~ Use "LinearLayout",and assign 0 to "layout_width",and assign 1 to "weight". ~ ~ Example of layout.xml <LinearLayout android:id="@+id/linearLayout1" android:layout_width="fill_parent" android:layout_height="wrap_content"> <Button android:layout_width="0dip" android:layout_weight="1" android:text="before" android:id="@+id/Button01" android:layout_height="wrap_content" > </Button> <Button android:layout_width="0dip" android:layout_weight="1" android:text="next" android:id="@+id/Button02" android:layout_height="wrap_content" android:layout_alignParentRight="true"> </Button> </LinearLayout> ~ ~ ~ ~ *Property of 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 - スクロールバーを表示するかどうか ~ **Property of ViewGroup [#tcf6cd7d] [[参考 - Android Wiki>http://wikiwiki.jp/android/?UI%A5%B3%A5%F3%A5%DD%A1%BC%A5%CD%A5%F3%A5%C8%2FViewGroup]] ~ ~ ~ ~ **Units of represent [#ya5409d4] Unit that can be used by layout~ #style(class=table_left){{ |px| pixels | |dp| Density Independent Pixels | |sp| Scale Independent Pixels | |mm| millimeter | |pt| Point | |in| Inch | ~ ~ ~ ~ *Portrait and landscape layout [#z4bb8c77] The Horizontal screen, Use "Layout-land" Folder. #ref(layout-land.jpg,nolink); ~ //*その他 [#t9aed44b] //リソースマネージャで各解像度毎のレイアウトを切り替えが出来 るよう ~ ''[[Back>Introduction to Android]]''
Do not change timestamp
''[[MobileApp>Mobile Application Guide]]'' > ''[[Android>Introduction to Android]]'' > ''Layout'' ~ ~ *Layout's Overview [#sb77194a] The UI of application can be set by the combination of View and ViewGroup. ~ ~ **View and ViewGroup [#y454ce88] ・The set of Veiw is ViewGroup. ~ ・ViewGroup contains two or more View. ~ ・ViewGroup can be contained in ViewGroup. ~ ・The layout inherit ViewGroup. ~ ※Refer to the following succession charts for the practical visualization. ~ **ViewGroup surrounding Class [#b370a8dc] "ViewGroup" and its succession relations are described as follows. &ref(ViewGroup.gif,nolink); ~ *Kind of layout [#k84d3564] ~ Typical View-Groups (layouts) are described as follows. #style(class=table_left){{ |Ⅰ| Absolute layout | The layout placement which specifies the absolute coordinate. | |Ⅱ| Relative layout | The layout placement which specifies the relative coordinate. | |Ⅲ| Linear layout | Horizontal direction and the vertical direction can be specified. | |Ⅳ| Table layout | The table form can be arranged. | |Ⅴ| Frame layout | Overlapping the VIEW is possible. | || the others || ~ **Ⅰ.Absolute layout [#ye06868a] ・Layout specified by using [absolute coordinate]~ ・It became non-recommendation from SDK1.5. (Because this layout cannot support multiple devices for different screen sizes.) ~ &ref(absolute.gif,nolink); &ref(absolute2.gif,nolink);~ ~ ***XML attribute which absolute coordinate is specified in [#kd3b4e95] layout_x ~ layout_y ~ ~ ***XML attribute which width and height of parts are specified in[#rbcc265f] layout_width~ layout_height~ fill_parent is MAX size. wrap_content is minimum size. ~ ~ **Ⅱ.Relative layout [#t95a1616] Layout which specify the relative position of widget. Can be specified placed in the top or bottom.~ ~ &ref(relative.gif,nolink);&ref(relative2.gif,nolink);~ 「基準の位置を変更すれば、それに伴いほかのウィジェットも自動的に位置が調整できる」「斜めや円形にも配置が可能」というメリットがある一方、~ 「気軽にウィジェットを追加・削除できない」、「どのようにリレーションさせているか分からなくなってしまう」という点がデメリット。 ~ ~ **Ⅲ.Linear layout [#j52dd8c3] Liner Layout is the layout which arrange widgets at straight vertical or horizontal. &ref(liner.gif,nolink); &ref(liner2.gif,nolink);~ ~ ~ **Ⅳ.Table layout [#w8af4a08] This layout can arranged widget in a tabular. &ref(tablelayout2.png,nolink); &ref(tablelayout.png,nolink);~ Outline Screen~ ~ ~ ~ ~ **Ⅴ.Frame layout [#p1539b7e] Frame layout is easy to use when stacking the View.~ For example, when overlaying images is available. ~ &ref(FrameLayout01.gif,nolink); &ref(FrameLayout02.gif,nolink);~ Outline Screen~ ~ ~ ~ *Practical use [#x63c4c9f] **Half-and-half [#ycf583ce] &ref(hanbun.png); ~ If you want to set half-and-half to buttons layout ,~ Use "LinearLayout",and assign 0 to "layout_width",and assign 1 to "weight". ~ ~ Example of layout.xml <LinearLayout android:id="@+id/linearLayout1" android:layout_width="fill_parent" android:layout_height="wrap_content"> <Button android:layout_width="0dip" android:layout_weight="1" android:text="before" android:id="@+id/Button01" android:layout_height="wrap_content" > </Button> <Button android:layout_width="0dip" android:layout_weight="1" android:text="next" android:id="@+id/Button02" android:layout_height="wrap_content" android:layout_alignParentRight="true"> </Button> </LinearLayout> ~ ~ ~ ~ *Property of 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 - スクロールバーを表示するかどうか ~ **Property of ViewGroup [#tcf6cd7d] [[参考 - Android Wiki>http://wikiwiki.jp/android/?UI%A5%B3%A5%F3%A5%DD%A1%BC%A5%CD%A5%F3%A5%C8%2FViewGroup]] ~ ~ ~ ~ **Units of represent [#ya5409d4] Unit that can be used by layout~ #style(class=table_left){{ |px| pixels | |dp| Density Independent Pixels | |sp| Scale Independent Pixels | |mm| millimeter | |pt| Point | |in| Inch | ~ ~ ~ ~ *Portrait and landscape layout [#z4bb8c77] The Horizontal screen, Use "Layout-land" Folder. #ref(layout-land.jpg,nolink); ~ //*その他 [#t9aed44b] //リソースマネージャで各解像度毎のレイアウトを切り替えが出来 るよう ~ ''[[Back>Introduction to Android]]''
View Text Formatting Rules