{"id":893,"date":"2022-07-24T16:09:42","date_gmt":"2023-01-08T09:24:34","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%ae%e3%83%ac%e3%82%a4%e3%82%a2%e3%82%a6%e3%83%88%e3%81%af%e3%80%81linearlayout%e3%81%a8relativelayout%e3%81%8c%e3%81%82%e3%82%8a%e3%81%be\/"},"modified":"2025-08-01T03:19:42","modified_gmt":"2025-07-31T18:19:42","slug":"%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%ae%e3%83%ac%e3%82%a4%e3%82%a2%e3%82%a6%e3%83%88%e3%81%af%e3%80%81linearlayout%e3%81%a8relativelayout%e3%81%8c%e3%81%82%e3%82%8a%e3%81%be","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%ae%e3%83%ac%e3%82%a4%e3%82%a2%e3%82%a6%e3%83%88%e3%81%af%e3%80%81linearlayout%e3%81%a8relativelayout%e3%81%8c%e3%81%82%e3%82%8a%e3%81%be\/","title":{"rendered":"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u306f\u3001LinearLayout\u3068RelativeLayout\u304c\u3042\u308a\u307e\u3059\u3002"},"content":{"rendered":"<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Android\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u306b\u3064\u3044\u3066\u6982\u8981\u3092\u8aac\u660e\u3057\u307e\u3059\u3002\u307e\u305f\u3001Android LinearLayout\u3068Android RelativeLayout\u3068\u3044\u3046\u753b\u9762\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u6574\u7406\u3059\u308b\u305f\u3081\u306e\u7279\u5b9a\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306b\u3064\u3044\u3066\u3082\u63a2\u6c42\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u30ec\u30a4\u30a2\u30a6\u30c8<\/h2>\n<p>\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u57fa\u672c\u7684\u306a\u69cb\u6210\u8981\u7d20\u306f\u3001View\u30af\u30e9\u30b9\u304b\u3089\u4f5c\u6210\u3055\u308c\u305fView\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u3042\u308a\u3001\u753b\u9762\u4e0a\u306e\u9577\u65b9\u5f62\u306e\u9818\u57df\u3092\u5360\u3081\u307e\u3059\u3002TextView\u3001Button\u3001EditText\u306a\u3069\u306eUI\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u57fa\u672c\u30af\u30e9\u30b9\u304cView\u3067\u3059\u3002ViewGroup\u306fView\u306e\u30b5\u30d6\u30af\u30e9\u30b9\u3067\u3059\u30021\u3064\u307e\u305f\u306f\u8907\u6570\u306eView\u306f\u3001ViewGroup\u306b\u307e\u3068\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002ViewGroup\u306f\u3001\u30d3\u30e5\u30fc\u306e\u8868\u793a\u9806\u5e8f\u3084\u914d\u7f6e\u65b9\u6cd5\u3092\u63d0\u4f9b\u3059\u308b\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002LinearLayout\u3001FrameLayout\u3001RelativeLayout\u306a\u3069\u304cViewGroup\u306e\u4f8b\u3067\u3059\u3002<\/p>\n<h3>\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u30bf\u30a4\u30d7<\/h3>\n<p>Android\u306f\u6b21\u306eViewGroup\u307e\u305f\u306f\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>LinearLayout(\u30ea\u30cb\u30a2\u30ec\u30a4\u30a2\u30a6\u30c8): \u5b50\u8981\u7d20\u3092\u7e26\u307e\u305f\u306f\u6a2a\u306e\u4e00\u65b9\u5411\u306b\u63c3\u3048\u308bViewGroup\u3067\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>RelativeLayout(\u76f8\u5bfe\u30ec\u30a4\u30a2\u30a6\u30c8): \u5b50\u30d3\u30e5\u30fc\u3092\u76f8\u5bfe\u7684\u306a\u4f4d\u7f6e\u306b\u8868\u793a\u3059\u308bViewGroup\u3067\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>AbsoluteLayout(\u7d76\u5bfe\u30ec\u30a4\u30a2\u30a6\u30c8): \u5b50\u30d3\u30e5\u30fc\u3084\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306e\u6b63\u78ba\u306a\u4f4d\u7f6e\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u30ec\u30a4\u30a2\u30a6\u30c8\u3067\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>TableLayout(\u30c6\u30fc\u30d6\u30eb\u30ec\u30a4\u30a2\u30a6\u30c8): \u5b50\u30d3\u30e5\u30fc\u3092\u884c\u3068\u5217\u306b\u30b0\u30eb\u30fc\u30d7\u5316\u3059\u308bView\u3067\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>FrameLayout(\u30d5\u30ec\u30fc\u30e0\u30ec\u30a4\u30a2\u30a6\u30c8): \u753b\u9762\u4e0a\u306e\u30d7\u30ec\u30fc\u30b9\u30db\u30eb\u30c0\u30fc\u3067\u30011\u3064\u306e\u30d3\u30e5\u30fc\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>ScrollView(\u30b9\u30af\u30ed\u30fc\u30eb\u30d3\u30e5\u30fc): \u7269\u7406\u7684\u306a\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u3088\u308a\u3082\u591a\u304f\u306e\u30b9\u30da\u30fc\u30b9\u3092\u5360\u6709\u3059\u308b\u30d3\u30e5\u30fc\u306e\u30ea\u30b9\u30c8\u3092\u30b9\u30af\u30ed\u30fc\u30eb\u3067\u304d\u308b\u7279\u6b8a\u306aFrameLayout\u3067\u3059\u3002\u901a\u5e38\u306fLinearLayout\u3067\u3042\u308b1\u3064\u306e\u5b50\u30d3\u30e5\u30fc\u307e\u305f\u306fViewGroup\u3092\u542b\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>ListView(\u30ea\u30b9\u30c8\u30d3\u30e5\u30fc): \u30b9\u30af\u30ed\u30fc\u30eb\u53ef\u80fd\u306a\u30a2\u30a4\u30c6\u30e0\u306e\u30ea\u30b9\u30c8\u3092\u8868\u793a\u3059\u308bViewGroup\u3067\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>GridView(\u30b0\u30ea\u30c3\u30c9\u30d3\u30e5\u30fc): 2\u6b21\u5143\u306e\u30b9\u30af\u30ed\u30fc\u30eb\u53ef\u80fd\u306a\u30b0\u30ea\u30c3\u30c9\u3067\u30a2\u30a4\u30c6\u30e0\u3092\u8868\u793a\u3059\u308bViewGroup\u3067\u3059\u3002\u30b0\u30ea\u30c3\u30c9\u5185\u306e\u30a2\u30a4\u30c6\u30e0\u306f\u3001\u3053\u306e\u30d3\u30e5\u30fc\u306b\u95a2\u9023\u4ed8\u3051\u3089\u308c\u305fListAdapter\u304b\u3089\u53d6\u5f97\u3055\u308c\u307e\u3059\u3002<\/ol>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u79c1\u305f\u3061\u306fAndroid\u3067\u6700\u3082\u3088\u304f\u4f7f\u7528\u3055\u308c\u308b2\u3064\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u306b\u7126\u70b9\u3092\u5f53\u3066\u307e\u3059\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>LinearLayout (\u30ea\u30cb\u30a2\u30ec\u30a4\u30a2\u30a6\u30c8)<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>RelativeLayout (\u30ea\u30ec\u30a4\u30c6\u30a3\u30d6\u30ec\u30a4\u30a2\u30a6\u30c8)<\/ol>\n<h3>\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u5c5e\u6027<\/h3>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>android:id\uff1a\u3053\u308c\u306f\u30d3\u30e5\u30fc\u3092\u4e00\u610f\u306b\u8b58\u5225\u3059\u308bID\u3067\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>android:layout_width\uff1a\u3053\u308c\u306f\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u5e45\u3067\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>android:layout_height\uff1a\u3053\u308c\u306f\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u9ad8\u3055\u3067\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>android:layout_margin\uff1a\u3053\u308c\u306f\u30d3\u30e5\u30fc\u306e\u5916\u5074\u306e\u4f59\u767d\u3067\u3059\u3002\u4f8b\u3048\u3070\u3001android:marginLeft=20dp\u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u30d3\u30e5\u30fc\u306f\u5de6\u304b\u308920dp\u5f8c\u306b\u914d\u7f6e\u3055\u308c\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>android:layout_padding\uff1a\u3053\u308c\u306fandroid:layout_margin\u3068\u4f3c\u3066\u3044\u307e\u3059\u304c\u3001\u30d3\u30e5\u30fc\u306e\u5185\u5074\u306e\u4f59\u767d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>android:layout_gravity\uff1a\u3053\u308c\u306f\u5b50View\u304c\u3069\u306e\u3088\u3046\u306b\u914d\u7f6e\u3055\u308c\u308b\u304b\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>android:layout_weight\uff1a\u3053\u308c\u306f\u30ec\u30a4\u30a2\u30a6\u30c8\u5185\u306e\u4f59\u5206\u306a\u30b9\u30da\u30fc\u30b9\u306e\u3046\u3061\u3001\u30d3\u30e5\u30fc\u306b\u5272\u308a\u5f53\u3066\u308b\u5272\u5408\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>android:layout_x\uff1a\u3053\u308c\u306f\u30ec\u30a4\u30a2\u30a6\u30c8\u306ex\u5ea7\u6a19\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>android:layout_y\uff1a\u3053\u308c\u306f\u30ec\u30a4\u30a2\u30a6\u30c8\u306ey\u5ea7\u6a19\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/ol>\n<p>android:layout_width=wrap_content\u306f\u3001\u30d3\u30e5\u30fc\u304c\u305d\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u306b\u5fc5\u8981\u306a\u5bf8\u6cd5\u306b\u5408\u308f\u305b\u3066\u30b5\u30a4\u30ba\u3092\u8abf\u6574\u3059\u308b\u3088\u3046\u306b\u6307\u793a\u3057\u307e\u3059\u3002android:layout_width=match_parent\u306f\u3001\u30d3\u30e5\u30fc\u304c\u89aa\u30d3\u30e5\u30fc\u3068\u540c\u3058\u5927\u304d\u3055\u306b\u306a\u308b\u3088\u3046\u306b\u6307\u793a\u3057\u307e\u3059\u3002<\/p>\n<h3>\u8868\u793a\u8b58\u5225<\/h3>\n<p>XML\u30bf\u30b0\u306e\u4e2d\u3067ID\u306e\u69cb\u6587\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>The at-symbol (@) at the beginning of the string indicates that the XML parser should parse and expand the rest of the ID string and identify it as an ID resource<\/li>\n<li>The plus-symbol (+) means that this is a new resource name that must be created and added to our resources<\/li>\n<\/ul>\n<h3>\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306eLinearLayout<\/h3>\n<p>Android\u306eLinearLayout\u306f\u3001\u8981\u7d20\u3092\u4e00\u76f4\u7dda\u306b\u914d\u7f6e\u3057\u307e\u3059\u3002android:orientation\u3092\u4f7f\u7528\u3057\u3066\u3001\u305d\u306e\u76f4\u7dda\u304c\u5782\u76f4\u304b\u6c34\u5e73\u304b\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u6c34\u5e73\u65b9\u5411\u306e\u914d\u7f6e\u3067\u3059\u3002\u5782\u76f4LinearLayout\u306f\u3001\u884c\u3054\u3068\u306b1\u3064\u306e\u5b50\u8981\u7d20\u3057\u304b\u6301\u305f\u306a\u3044\u305f\u3081\uff08\u3064\u307e\u308a\u3001\u5358\u4e00\u8981\u7d20\u306e\u5217\u3067\u3059\uff09\u3001\u6c34\u5e73LinearLayout\u306f\u753b\u9762\u4e0a\u306b1\u3064\u306e\u5358\u4e00\u306e\u884c\u306e\u8981\u7d20\u3057\u304b\u6301\u3061\u307e\u305b\u3093\u3002android:layout_weight\u5c5e\u6027\u306f\u3001\u8981\u7d20\u306e\u91cd\u8981\u6027\u3092\u8868\u3057\u307e\u3059\u3002\u91cd\u307f\u304c\u5927\u304d\u3044\u8981\u7d20\u306f\u3001\u753b\u9762\u4e0a\u306e\u30b9\u30da\u30fc\u30b9\u3092\u3088\u308a\u591a\u304f\u5360\u6709\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306bLinearLayout\u3092\u4f7f\u7528\u3057\u305f\u30b5\u30f3\u30d7\u30eb\u30ec\u30a4\u30a2\u30a6\u30c8\u306eXML\u304c\u3042\u308a\u307e\u3059\uff1alayout_linear.xml<\/p>\n<pre class=\"post-pre\"><code>&lt;LinearLayout xmlns:android=\"https:\/\/schemas.android.com\/apk\/res\/android\"\r\n    android:orientation=\"vertical\"\r\n    android:layout_width=\"fill_parent\"\r\n    android:layout_height=\"fill_parent\"\r\n    android:layout_margin=\"@dimen\/activity_horizontal_margin\"&gt;\r\n    &lt;Button\r\n        android:id=\"@+id\/backbutton\"\r\n        android:text=\"Back\"\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\" \/&gt;\r\n    &lt;TextView\r\n        android:text=\"Row 2\"\r\n        android:layout_width=\"wrap_content\"\r\n        android:textSize=\"18sp\"\r\n        android:layout_margin=\"10dp\"\r\n        android:layout_height=\"wrap_content\" \/&gt;\r\n    &lt;TextView\r\n        android:text=\"Row 3\"\r\n        android:textSize=\"18sp\"\r\n        android:layout_margin=\"10dp\"\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\" \/&gt;\r\n    &lt;TextView\r\n        android:text=\"Row 4\"\r\n        android:textSize=\"18sp\"\r\n        android:layout_margin=\"10dp\"\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\" \/&gt;\r\n    &lt;TextView\r\n        android:text=\"Row 5\"\r\n        android:textSize=\"18sp\"\r\n        android:layout_margin=\"10dp\"\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\" \/&gt;\r\n\r\n    &lt;LinearLayout\r\n        android:orientation=\"horizontal\"\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"wrap_content\"&gt;\r\n        &lt;Button\r\n            android:id=\"@+id\/next_button\"\r\n            android:text=\"next\"\r\n            android:layout_width=\"wrap_content\"\r\n            android:layout_height=\"wrap_content\" \/&gt;\r\n        &lt;TextView\r\n            android:text=\"Row 6b\"\r\n            android:textSize=\"18sp\"\r\n            android:layout_margin=\"10dp\"\r\n            android:layout_gravity=\"center\"\r\n            android:layout_width=\"wrap_content\"\r\n            android:layout_height=\"wrap_content\" \/&gt;\r\n        &lt;TextView\r\n            android:text=\"Row 6c\"\r\n            android:textSize=\"18sp\"\r\n            android:layout_margin=\"10dp\"\r\n            android:layout_gravity=\"center\"\r\n            android:layout_width=\"wrap_content\"\r\n            android:layout_height=\"wrap_content\" \/&gt;\r\n        &lt;TextView\r\n            android:text=\"Row 6d\"\r\n            android:textSize=\"18sp\"\r\n            android:layout_margin=\"10dp\"\r\n            android:layout_gravity=\"center\"\r\n            android:layout_width=\"wrap_content\"\r\n            android:layout_height=\"wrap_content\" \/&gt;\r\n\r\n    &lt;\/LinearLayout&gt;\r\n\r\n&lt;\/LinearLayout&gt;\r\n<\/code><\/pre>\n<p>\u3053\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u3067\u306f\u3001\u89aa\u306eLinearLayout\u304c\u5782\u76f4\u65b9\u5411\u306b\u914d\u7f6e\u3055\u308c\u3001\u30dc\u30bf\u30f3\u3001\u30c6\u30ad\u30b9\u30c8\u30d3\u30e5\u30fc\u3001\u30cd\u30b9\u30c8\u3055\u308c\u305fLinearLayout\uff08\u6c34\u5e73\u65b9\u5411\u306b\u914d\u7f6e\u3055\u308c\u308b\uff09\u304c\u5b50\u30d3\u30e5\u30fc\u3068\u3057\u3066\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u6ce8\u610f\uff1a\u30cd\u30b9\u30c8\u3055\u308c\u305f\u30ec\u30a4\u30a2\u30a6\u30c8\u306f\u5fc5\u305a\u3057\u3082\u540c\u3058\u30bf\u30a4\u30d7\u3067\u3042\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u305f\u3068\u3048\u3070\u3001RelativeLayout\u306e\u5b50\u306e1\u3064\u3068\u3057\u3066LinearLayout\u3092\u6301\u3064\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3057\u3001\u305d\u306e\u9006\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306eRelativeLayout<\/h3>\n<p>Android\u306eRelativeLayout\u306f\u3001\u8981\u7d20\u540c\u58eb\u3084\u89aa\u30b3\u30f3\u30c6\u30ca\u3068\u306e\u95a2\u4fc2\u306b\u57fa\u3065\u3044\u3066\u8981\u7d20\u306e\u914d\u7f6e\u3092\u884c\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u6700\u3082\u8907\u96d1\u306a\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u4e00\u3064\u3067\u3042\u308a\u3001\u5b9f\u969b\u306b\u671b\u3080\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u5f97\u308b\u305f\u3081\u306b\u3044\u304f\u3064\u304b\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u5fc5\u8981\u3067\u3059\u3002\u3064\u307e\u308a\u3001RelativeLayout\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30d3\u30e5\u30fc\u3092\u5de6\u5074\u306b\u914d\u7f6e\u3057\u305f\u308a\u3001\u53f3\u5074\u306b\u914d\u7f6e\u3057\u305f\u308a\u3001\u4e0b\u306b\u914d\u7f6e\u3057\u305f\u308a\u3001\u4e0a\u306b\u914d\u7f6e\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3055\u3089\u306b\u3001\u30d3\u30e5\u30fc\u3092\u89aa\u8981\u7d20\u306b\u5bfe\u3057\u3066\u6c34\u5e73\u307e\u305f\u306f\u5782\u76f4\u306b\u4e2d\u592e\u63c3\u3048\u3059\u308b\u3053\u3068\u3082\u3001\u89aaRelativeLayout\u306e\u3069\u306e\u30a8\u30c3\u30b8\u306b\u3082\u5408\u308f\u305b\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u5b50\u30d3\u30e5\u30fc\u306b\u3053\u308c\u3089\u306e\u5c5e\u6027\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30d3\u30e5\u30fc\u306f\u5de6\u4e0a\u306e\u4f4d\u7f6e\u306b\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>Android\u306eRelativeLayout\u5c5e\u6027<\/h3>\n<p>RelativeLayout\u3067\u4f7f\u7528\u3055\u308c\u308b\u4e3b\u306a\u5c5e\u6027\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002\u3053\u308c\u3089\u306f3\u3064\u306e\u7570\u306a\u308b\u30ab\u30c6\u30b4\u30ea\u30fc\u306b\u5206\u304b\u308c\u307e\u3059\u3002<\/p>\n<h4>\u30b3\u30f3\u30c6\u30ca\u306b\u5bfe\u3057\u3066\u306e\u76f8\u5bfe\u7684\u306a\u4f4d\u7f6e<\/h4>\n<ul class=\"post-ul\">\n<li>android:layout_alignParentBottom : Places the bottom of the element on the bottom of the container<\/li>\n<li>android:layout_alignParentLeft : Places the left of the element on the left side of the container<\/li>\n<li>android:layout_alignParentRight : Places the right of the element on the right side of the container<\/li>\n<li>android:layout_alignParentTop : Places the element at the top of the container<\/li>\n<li>android:layout_centerHorizontal : Centers the element horizontally within its parent container<\/li>\n<li>android:layout_centerInParent : Centers the element both horizontally and vertically within its container<\/li>\n<li>android:layout_centerVertical : Centers the element vertically within its parent container<\/li>\n<\/ul>\n<h4>\u5144\u5f1f\u59c9\u59b9\u306b\u95a2\u9023\u3057\u3066<\/h4>\n<ul class=\"post-ul\">\n<li>android:layout_above : Places the element above the specified element<\/li>\n<li>android:layout_below : Places the element below the specified element<\/li>\n<li>android:layout_toLeftOf : Places the element to the left of the specified element<\/li>\n<li>android:layout_toRightOf : Places the element to the right of the specified element<\/li>\n<\/ul>\n<p>\u300c@id\/XXXXX\u300d\u3068\u3044\u3046\u8a18\u8ff0\u306f\u3001\u8981\u7d20\u3092\u305d\u306eID\u3067\u53c2\u7167\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u899a\u3048\u3066\u304a\u304f\u3079\u304d\u4e00\u3064\u306e\u70b9\u306f\u3001\u8981\u7d20\u304c\u5ba3\u8a00\u3055\u308c\u308b\u524d\u306b\u53c2\u7167\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u305f\u3081\u3001\u305d\u306e\u3088\u3046\u306a\u5834\u5408\u306b\u306f@+id\/\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h4>\u4ed6\u306e\u8981\u7d20\u3068\u306e\u6574\u5408\u6027<\/h4>\n<ul class=\"post-ul\">\n<li>android:layout_alignBaseline : Aligns baseline of the new element with the baseline of the specified element<\/li>\n<li>android:layout_alignBottom : Aligns the bottom of new element in with the bottom of the specified element<\/li>\n<li>android:layout_alignLeft : Aligns left edge of the new element with the left edge of the specified element<\/li>\n<li>android:layout_alignRight : Aligns right edge of the new element with the right edge of the specified element<\/li>\n<li>android:layout_alignTop : Places top of the new element in alignment with the top of the specified element<\/li>\n<\/ul>\n<p>\u4ee5\u4e0b\u306eXML\u30ec\u30a4\u30a2\u30a6\u30c8\u306fRelativeLayout\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\uff1alayout_relative.xml<\/p>\n<pre class=\"post-pre\"><code>&lt;RelativeLayout\r\n    android:layout_width=\"fill_parent\"\r\n    android:layout_height=\"fill_parent\"\r\n    xmlns:android=\"https:\/\/schemas.android.com\/apk\/res\/android\"&gt;\r\n    &lt;Button\r\n        android:id=\"@+id\/backbutton\"\r\n        android:text=\"Back\"\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\" \/&gt;\r\n    &lt;TextView\r\n        android:id=\"@+id\/firstName\"\r\n        android:text=\"First Name\"\r\n        android:textSize=\"18sp\"\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:layout_below=\"@id\/backbutton\" \/&gt;\r\n    &lt;TextView\r\n        android:id=\"@+id\/editFirstName\"\r\n        android:text=\"JournalDev\"\r\n        android:textSize=\"18sp\"\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_marginLeft=\"10dp\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:layout_toRightOf=\"@id\/firstName\"\r\n        android:layout_below=\"@id\/backbutton\"\/&gt;\r\n    &lt;TextView\r\n        android:id=\"@+id\/editLastName\"\r\n        android:text=\"Layout Tutorial Example\"\r\n        android:textSize=\"18sp\"\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:layout_alignTop=\"@+id\/lastName\"\r\n        android:layout_toRightOf=\"@+id\/lastName\"\r\n        android:layout_toEndOf=\"@+id\/lastName\" \/&gt;\r\n    &lt;TextView\r\n        android:id=\"@+id\/lastName\"\r\n        android:text=\"Last Name\"\r\n        android:textSize=\"18sp\"\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:layout_marginTop=\"48dp\"\r\n        android:layout_below=\"@+id\/firstName\"\r\n        android:layout_alignParentLeft=\"true\"\r\n        android:layout_alignParentStart=\"true\"\r\n        android:layout_marginRight=\"10dp\"\r\n        android:layout_marginLeft=\"40dp\"\r\n        android:layout_marginStart=\"40dp\" \/&gt;\r\n\r\n    &lt;Button\r\n        android:id=\"@+id\/next\"\r\n        android:text=\"Next\"\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:layout_below=\"@+id\/editLastName\"\r\n        android:layout_alignLeft=\"@+id\/editLastName\"\r\n        android:layout_alignStart=\"@+id\/editLastName\"\r\n        android:layout_marginTop=\"37dp\" \/&gt;\r\n&lt;\/RelativeLayout&gt;\r\n<\/code><\/pre>\n<p>\u65e5\u672c\u8a9e\u3067\u4ee5\u4e0b\u306e\u6587\u3092\u4e00\u3064\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u8868\u73fe\u3059\u308b\uff1a<br \/>\n\u76f8\u5bfe\u7684\u306a\u4f4d\u7f6e\u306b\u57fa\u3065\u3044\u3066\u8981\u7d20\u3092\u4e26\u3079\u66ff\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u6b21\u306eXML\u30ec\u30a4\u30a2\u30a6\u30c8\u306f\u3001\u5165\u308c\u5b50\u306b\u306a\u3063\u305f\u30ea\u30cb\u30a2\u30ec\u30a4\u30a2\u30a6\u30c8\u3068\u76f8\u5bfe\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u6301\u3064\u30ab\u30b9\u30bf\u30e0\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u8868\u3057\u3066\u3044\u307e\u3059\u3002layout_mixed.xml<\/p>\n<pre class=\"post-pre\"><code>&lt;RelativeLayout\r\n    android:layout_width=\"fill_parent\"\r\n    android:layout_height=\"fill_parent\"\r\n    xmlns:android=\"https:\/\/schemas.android.com\/apk\/res\/android\"&gt;\r\n\r\n    &lt;TextView\r\n        android:id=\"@+id\/parent_rl\"\r\n        android:text=\"Parent RelativeLayout\"\r\n        android:textSize=\"18sp\"\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\" \/&gt;\r\n\r\n    &lt;LinearLayout\r\n        android:orientation=\"horizontal\"\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:id=\"@+id\/linearLayout\"\r\n        android:layout_below=\"@id\/parent_rl\"\r\n        android:layout_alignParentRight=\"true\"\r\n        android:layout_alignParentEnd=\"true\"&gt;\r\n\r\n        &lt;TextView\r\n            android:text=\"Nested Horizontal\"\r\n            android:textSize=\"18sp\"\r\n            android:layout_margin=\"10dp\"\r\n            android:layout_width=\"wrap_content\"\r\n            android:layout_height=\"wrap_content\" \/&gt;\r\n\r\n        &lt;TextView\r\n            android:text=\"LL\"\r\n            android:textSize=\"18sp\"\r\n            android:layout_margin=\"10dp\"\r\n            android:layout_width=\"wrap_content\"\r\n            android:layout_height=\"wrap_content\" \/&gt;\r\n\r\n\r\n        &lt;LinearLayout\r\n            android:orientation=\"vertical\"\r\n            android:layout_width=\"wrap_content\"\r\n            android:layout_height=\"wrap_content\"&gt;\r\n\r\n            &lt;TextView\r\n                android:text=\"Double Nested\"\r\n                android:textSize=\"18sp\"\r\n                android:layout_margin=\"10dp\"\r\n                android:layout_gravity=\"center\"\r\n                android:layout_width=\"wrap_content\"\r\n                android:layout_height=\"wrap_content\" \/&gt;\r\n            &lt;TextView\r\n                android:text=\"Vertical\"\r\n                android:textSize=\"18sp\"\r\n                android:layout_margin=\"10dp\"\r\n                android:layout_gravity=\"center\"\r\n                android:layout_width=\"wrap_content\"\r\n                android:layout_height=\"wrap_content\" \/&gt;\r\n            &lt;TextView\r\n                android:text=\"LL\"\r\n                android:textSize=\"18sp\"\r\n                android:layout_margin=\"10dp\"\r\n                android:layout_gravity=\"center\"\r\n                android:layout_width=\"wrap_content\"\r\n                android:layout_height=\"wrap_content\" \/&gt;\r\n\r\n        &lt;\/LinearLayout&gt;\r\n\r\n\r\n    &lt;\/LinearLayout&gt;\r\n\r\n    &lt;RelativeLayout\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"match_parent\"\r\n        android:layout_below=\"@id\/linearLayout\"&gt;\r\n\r\n    &lt;TextView\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:textAppearance=\"?android:attr\/textAppearanceMedium\"\r\n        android:text=\"Nested Relative Layout\"\r\n        android:id=\"@+id\/textView\"\r\n        android:layout_alignParentTop=\"true\"\r\n        android:layout_centerHorizontal=\"true\" \/&gt;\r\n\r\n        &lt;Button\r\n            android:id=\"@+id\/back_button_pressed\"\r\n            android:text=\"back\"\r\n            android:layout_width=\"wrap_content\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:layout_below=\"@+id\/textView\"\r\n            android:layout_centerHorizontal=\"true\"\r\n            android:layout_marginTop=\"66dp\" \/&gt;\r\n\r\n    &lt;\/RelativeLayout&gt;\r\n\r\n\r\n&lt;\/RelativeLayout&gt;\r\n<\/code><\/pre>\n<h3>Android\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u69cb\u9020<\/h3>\n<p>\u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306f\u3001\u4e0a\u8ff0\u3057\u305f3\u3064\u306e\u6d3b\u52d5\u3068\u305d\u308c\u306b\u5bfe\u5fdc\u3059\u308b\u30ec\u30a4\u30a2\u30a6\u30c8\u304b\u3089\u6210\u308a\u7acb\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u30b3\u30fc\u30c9<\/h3>\n<p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306fMainActivity\u306b\u8d77\u52d5\u3057\u3001\u6b21\u306e\u30b3\u30fc\u30c9\u306b\u3088\u3063\u3066layout_linear.xml\u306e\u5185\u5bb9\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.layouts;\r\n\r\nimport android.content.Intent;\r\nimport android.support.v7.app.AppCompatActivity;\r\nimport android.os.Bundle;\r\nimport android.view.Menu;\r\nimport android.view.MenuItem;\r\nimport android.view.View;\r\nimport android.widget.Button;\r\n\r\npublic class MainActivity extends AppCompatActivity {\r\n\r\n\r\n    Button back,next;\r\n    @Override\r\n    protected void onCreate(Bundle savedInstanceState) {\r\n        super.onCreate(savedInstanceState);\r\n        setContentView(R.layout.layout_linear);\r\n        back=(Button)findViewById(R.id.back_button);\r\n        next=(Button)findViewById(R.id.next_button);\r\n\r\n        next.setOnClickListener(new View.OnClickListener() {\r\n            @Override\r\n            public void onClick(View v) {\r\n                Intent intent=new Intent(MainActivity.this,SecondActivity.class);\r\n                intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n                startActivity(intent);\r\n            }\r\n        });\r\n        back.setOnClickListener(new View.OnClickListener() {\r\n            @Override\r\n            public void onClick(View v) {\r\n                finish();\r\n            }\r\n        });\r\n\r\n    }\r\n\r\n}\r\n<\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001SecondActivity\u304a\u3088\u3073ThirdActivity\u306f\u3001\u305d\u308c\u305e\u308clayout_relative.xml\u304a\u3088\u3073layout_mixed.xml\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.layouts;\r\n\r\nimport android.app.Activity;\r\nimport android.content.Intent;\r\nimport android.os.Bundle;\r\nimport android.view.View;\r\nimport android.widget.Button;\r\n\r\npublic class SecondActivity extends Activity {\r\n    Button back,next;\r\n    @Override\r\n    protected void onCreate(Bundle savedInstanceState) {\r\n        super.onCreate(savedInstanceState);\r\n        setContentView(R.layout.layout_relative);\r\n        back=(Button)findViewById(R.id.backbutton);\r\n        next=(Button)findViewById(R.id.next);\r\n\r\n        next.setOnClickListener(new View.OnClickListener() {\r\n            @Override\r\n            public void onClick(View v) {\r\n                Intent intent=new Intent(SecondActivity.this,ThirdActivity.class);\r\n                intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n                startActivity(intent);\r\n            }\r\n        });\r\n        back.setOnClickListener(new View.OnClickListener() {\r\n            @Override\r\n            public void onClick(View v) {\r\n                Intent intent=new Intent(SecondActivity.this,MainActivity.class);\r\n                intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n                startActivity(intent);\r\n            }\r\n        });\r\n\r\n    }\r\n}\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>package com.scdev.layouts;\r\n\r\nimport android.app.Activity;\r\nimport android.content.Intent;\r\nimport android.os.Bundle;\r\nimport android.view.View;\r\nimport android.widget.Button;\r\n\r\npublic class ThirdActivity extends Activity {\r\n    Button back;\r\n    @Override\r\n    protected void onCreate(Bundle savedInstanceState) {\r\n        super.onCreate(savedInstanceState);\r\n        setContentView(R.layout.layout_mixed);\r\n        back=(Button)findViewById(R.id.back_button_pressed);\r\n\r\n        back.setOnClickListener(new View.OnClickListener() {\r\n            @Override\r\n            public void onClick(View v) {\r\n                Intent intent=new Intent(ThirdActivity.this,SecondActivity.class);\r\n                intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n                startActivity(intent);\r\n            }\r\n        });\r\n\r\n    }\r\n}\r\n<\/code><\/pre>\n<p>3\u3064\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u30a4\u30e1\u30fc\u30b8\u51fa\u529b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\uff1alayout_linear.xml\u3002\u753b\u50cf\u3067\u793a\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u306b\u3001\u89aaLinearLayout\u306f1\u3064\u306e\u5782\u76f4\u306e\u5217\u306b6\u3064\u306e\u5b50\u8981\u7d20\u304b\u3089\u306a\u308a\u307e\u3059\u3002\u305d\u306e\u3046\u3061\u306e1\u3064\u306f\u3001\u6c34\u5e73\u65b9\u5411\u306b4\u3064\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u542b\u3080\u30cd\u30b9\u30c8\u3055\u308c\u305fLinearLayout\u306e\u5b50\u30d3\u30e5\u30fc\u3067\u3059\u3002layout_relative.xml\u3002\u4e0a\u306e\u753b\u50cf\u3067\u793a\u3055\u308c\u3066\u3044\u308b\u77e2\u5370\u306f\u3001\u5144\u5f1f\u8981\u7d20\u304c\u4e92\u3044\u3084\u30b3\u30f3\u30c6\u30ca\u306b\u5bfe\u3057\u3066\u3069\u306e\u3088\u3046\u306b\u914d\u7f6e\u3055\u308c\u308b\u304b\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002layout_mixed.xml\u3002\u3053\u306eRelative Layout\u306b\u306f\u3001Nested Horizontal LinearLayout\u5185\u306eVertical LinearLayout\u3068\u3001Child RelativeLayout\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u306a\u304a\u3001\u7570\u306a\u308b\u30ec\u30a4\u30a2\u30a6\u30c8\u306b\u5c5e\u3059\u308b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f\u5144\u5f1f\u3067\u306a\u304f\u3001\u3057\u305f\u304c\u3063\u3066\u4e92\u3044\u306b\u76f8\u5bfe\u7684\u306a\u4f4d\u7f6e\u306b\u914d\u7f6e\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u305d\u308c\u3089\u306e\u30b3\u30f3\u30c6\u30ca\u30ec\u30a4\u30a2\u30a6\u30c8\u304c\u5144\u5f1f\u3067\u3042\u308a\u3001\u4e92\u3044\u306b\u76f8\u5bfe\u7684\u306a\u4f4d\u7f6e\u306b\u914d\u7f6e\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u9752\u3044\u7dda\u3067\u56f2\u307e\u308c\u305f\u9577\u65b9\u5f62\u3068\u77e2\u5370\u306b\u3064\u3044\u3066\u7591\u554f\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u305d\u308c\u306f\u30b0\u30e9\u30d5\u30a3\u30ab\u30eb\u30d3\u30e5\u30fc\u306exml\u30ec\u30a4\u30a2\u30a6\u30c8\u304b\u3089\u306e\u30a4\u30e1\u30fc\u30b8\u3067\u3059\u3002\u30a2\u30d7\u30ea\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u3053\u308c\u3089\u306e\u9752\u3044\u7dda\u3084\u9577\u65b9\u5f62\u306f\u8868\u793a\u3055\u308c\u307e\u305b\u3093\u3002\u3053\u308c\u3067Android\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306f\u7d42\u4e86\u3067\u3059\u3002\u6b21\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u4ed6\u306eAndroid\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u30ab\u30d0\u30fc\u3057\u307e\u3059\u3002\u6700\u7d42\u7684\u306aAndroid\u30ec\u30a4\u30a2\u30a6\u30c8\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306f\u4ee5\u4e0b\u306e\u30ea\u30f3\u30af\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Android\u306eLinearLayout\u3068RelativeLayout\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u53c2\u7167: API\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Android\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u306b\u3064\u3044\u3066\u6982\u8981\u3092\u8aac\u660e\u3057\u307e\u3059\u3002\u307e\u305f\u3001Android LinearLayout\u3068Android RelativeLayout\u3068\u3044\u3046\u753b\u9762\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u6574\u7406\u3059\u308b\u305f\u3081\u306e\u7279\u5b9a\u306e\u30ec\u30a4\u30a2\u30a6\u30c8 [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,61],"class_list":["post-893","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-26","tag-61"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u306f\u3001LinearLayout\u3068RelativeLayout\u304c\u3042\u308a\u307e\u3059\u3002 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u306fLinearLayout\u3068RelativeLayout\u304c\u3042\u308a\u307e\u3059\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u306f\u3001linearlayout\u3068relativelayout\u304c\u3042\u308a\u307e\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u306f\u3001LinearLayout\u3068RelativeLayout\u304c\u3042\u308a\u307e\u3059\u3002\" \/>\n<meta property=\"og:description\" content=\"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u306fLinearLayout\u3068RelativeLayout\u304c\u3042\u308a\u307e\u3059\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u306f\u3001linearlayout\u3068relativelayout\u304c\u3042\u308a\u307e\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-08T09:24:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T18:19:42+00:00\" \/>\n<meta name=\"author\" content=\"\u7dbe\u4e43, \u4e00\u5e0c\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u7dbe\u4e43, \u4e00\u5e0c\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"35\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%ae%e3%83%ac%e3%82%a4%e3%82%a2%e3%82%a6%e3%83%88%e3%81%af%e3%80%81linearlayout%e3%81%a8relativelayout%e3%81%8c%e3%81%82%e3%82%8a%e3%81%be\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%ae%e3%83%ac%e3%82%a4%e3%82%a2%e3%82%a6%e3%83%88%e3%81%af%e3%80%81linearlayout%e3%81%a8relativelayout%e3%81%8c%e3%81%82%e3%82%8a%e3%81%be\/\",\"name\":\"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u306f\u3001LinearLayout\u3068RelativeLayout\u304c\u3042\u308a\u307e\u3059\u3002 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2023-01-08T09:24:34+00:00\",\"dateModified\":\"2025-07-31T18:19:42+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/601389077b7f4e4ad6115428e3b73bff\"},\"description\":\"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u306fLinearLayout\u3068RelativeLayout\u304c\u3042\u308a\u307e\u3059\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%ae%e3%83%ac%e3%82%a4%e3%82%a2%e3%82%a6%e3%83%88%e3%81%af%e3%80%81linearlayout%e3%81%a8relativelayout%e3%81%8c%e3%81%82%e3%82%8a%e3%81%be\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%ae%e3%83%ac%e3%82%a4%e3%82%a2%e3%82%a6%e3%83%88%e3%81%af%e3%80%81linearlayout%e3%81%a8relativelayout%e3%81%8c%e3%81%82%e3%82%8a%e3%81%be\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%ae%e3%83%ac%e3%82%a4%e3%82%a2%e3%82%a6%e3%83%88%e3%81%af%e3%80%81linearlayout%e3%81%a8relativelayout%e3%81%8c%e3%81%82%e3%82%8a%e3%81%be\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u306f\u3001LinearLayout\u3068RelativeLayout\u304c\u3042\u308a\u307e\u3059\u3002\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/601389077b7f4e4ad6115428e3b73bff\",\"name\":\"\u7dbe\u4e43, \u4e00\u5e0c\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2228fe98b71141214fb24fb1b5ae44f99bdfa0602bbd89b351f2acd49ece862d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2228fe98b71141214fb24fb1b5ae44f99bdfa0602bbd89b351f2acd49ece862d?s=96&d=mm&r=g\",\"caption\":\"\u7dbe\u4e43, \u4e00\u5e0c\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/ayanokazuki\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%ae%e3%83%ac%e3%82%a4%e3%82%a2%e3%82%a6%e3%83%88%e3%81%af%e3%80%81linearlayout%e3%81%a8relativelayout%e3%81%8c%e3%81%82%e3%82%8a%e3%81%be\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u306f\u3001LinearLayout\u3068RelativeLayout\u304c\u3042\u308a\u307e\u3059\u3002 - Blog - Silicon Cloud","description":"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u306fLinearLayout\u3068RelativeLayout\u304c\u3042\u308a\u307e\u3059\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/ja\/blog\/\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u306f\u3001linearlayout\u3068relativelayout\u304c\u3042\u308a\u307e\/","og_locale":"ja_JP","og_type":"article","og_title":"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u306f\u3001LinearLayout\u3068RelativeLayout\u304c\u3042\u308a\u307e\u3059\u3002","og_description":"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u306fLinearLayout\u3068RelativeLayout\u304c\u3042\u308a\u307e\u3059\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u306f\u3001linearlayout\u3068relativelayout\u304c\u3042\u308a\u307e\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-01-08T09:24:34+00:00","article_modified_time":"2025-07-31T18:19:42+00:00","author":"\u7dbe\u4e43, \u4e00\u5e0c","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u7dbe\u4e43, \u4e00\u5e0c","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"35\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%ae%e3%83%ac%e3%82%a4%e3%82%a2%e3%82%a6%e3%83%88%e3%81%af%e3%80%81linearlayout%e3%81%a8relativelayout%e3%81%8c%e3%81%82%e3%82%8a%e3%81%be\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%ae%e3%83%ac%e3%82%a4%e3%82%a2%e3%82%a6%e3%83%88%e3%81%af%e3%80%81linearlayout%e3%81%a8relativelayout%e3%81%8c%e3%81%82%e3%82%8a%e3%81%be\/","name":"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u306f\u3001LinearLayout\u3068RelativeLayout\u304c\u3042\u308a\u307e\u3059\u3002 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2023-01-08T09:24:34+00:00","dateModified":"2025-07-31T18:19:42+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/601389077b7f4e4ad6115428e3b73bff"},"description":"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u306fLinearLayout\u3068RelativeLayout\u304c\u3042\u308a\u307e\u3059\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%ae%e3%83%ac%e3%82%a4%e3%82%a2%e3%82%a6%e3%83%88%e3%81%af%e3%80%81linearlayout%e3%81%a8relativelayout%e3%81%8c%e3%81%82%e3%82%8a%e3%81%be\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%ae%e3%83%ac%e3%82%a4%e3%82%a2%e3%82%a6%e3%83%88%e3%81%af%e3%80%81linearlayout%e3%81%a8relativelayout%e3%81%8c%e3%81%82%e3%82%8a%e3%81%be\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%ae%e3%83%ac%e3%82%a4%e3%82%a2%e3%82%a6%e3%83%88%e3%81%af%e3%80%81linearlayout%e3%81%a8relativelayout%e3%81%8c%e3%81%82%e3%82%8a%e3%81%be\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u306f\u3001LinearLayout\u3068RelativeLayout\u304c\u3042\u308a\u307e\u3059\u3002"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/601389077b7f4e4ad6115428e3b73bff","name":"\u7dbe\u4e43, \u4e00\u5e0c","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2228fe98b71141214fb24fb1b5ae44f99bdfa0602bbd89b351f2acd49ece862d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2228fe98b71141214fb24fb1b5ae44f99bdfa0602bbd89b351f2acd49ece862d?s=96&d=mm&r=g","caption":"\u7dbe\u4e43, \u4e00\u5e0c"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/ayanokazuki\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%ae%e3%83%ac%e3%82%a4%e3%82%a2%e3%82%a6%e3%83%88%e3%81%af%e3%80%81linearlayout%e3%81%a8relativelayout%e3%81%8c%e3%81%82%e3%82%8a%e3%81%be\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/893","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=893"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/893\/revisions"}],"predecessor-version":[{"id":46330,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/893\/revisions\/46330"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=893"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=893"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=893"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}