{"id":5049,"date":"2021-04-08T11:45:48","date_gmt":"2021-04-08T02:45:48","guid":{"rendered":"https:\/\/www.sria.co.jp\/blog\/?p=5049"},"modified":"2021-04-07T21:30:49","modified_gmt":"2021-04-07T12:30:49","slug":"5049","status":"publish","type":"post","link":"https:\/\/www.sria.co.jp\/blog\/2021\/04\/5049\/","title":{"rendered":"\u3010Android\u3011ConstraintLayout\u3068space\u3067XML\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u7dba\u9e97\u306b\u3059\u308b\u30c6\u30af\u30cb\u30c3\u30af"},"content":{"rendered":"<p>SRIA\u306e\u4f50\u85e4\uff08\u7422\uff09\u3067\u3059\u3002<br \/>\n\u307f\u306a\u3055\u3093\bAndroid\u958b\u767a\u3057\u3066\u307e\u3059\u304b\uff1f<br \/>\n\u4eca\u56de\u306fConstraintLayout\u306e\u304a\u8a71\u3067\u3059\u3002<\/p>\n<p>ConstraintLayout\u3092\u4f7f\u3063\u3066\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u7d44\u3080\u3068\u3001View\u306e\u6539\u88c5\u304c\u5c11\u306a\u304f\u306a\u3063\u3066\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u4e0a\u304c\u308b\u3068\u304b\u3001\u8907\u96d1\u306a\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u30d5\u30e9\u30c3\u30c8\u306b\u8868\u73fe\u3067\u304d\u308b\u306a\u3069\u306e\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308b\u3068\u8a00\u308f\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3044\u308d\u3044\u308d\u306a\u8a18\u4e8b\u3067\u3082\u7d39\u4ecb\u3055\u308c\u3066\u3044\u307e\u3059\uff08ConstraintLayout\u3092\u5165\u308c\u5b50\u306b\u3059\u308b\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u843d\u3061\u308b\u306a\u3069\u306e\u8af8\u8aac\u306f\u3042\u308a\u307e\u3059\u304c&#8230;\u3002\uff09<\/p>\n<p>\u5b9f\u969b\u306b\u4f7f\u3063\u3066\u307f\u305f\u611f\u60f3\u3068\u3057\u3066\u306f\u3001\u4eca\u307e\u3067\u306fLinearLayout\u306a\u3069\u306e\u4e26\u3073\u9806\u3092\u6301\u3063\u305fView\u306b<strong>\u300c\u8981\u7d20\u3092\u5165\u308c\u308b<\/strong>\u300d\u65b9\u6cd5\u3067\u30ec\u30a4\u30a2\u30a6\u30c8\u3057\u3066\u3044\u305f\u306e\u306b\u5bfe\u3057\u3001ConstraintLayout\u3067\u306f<strong>\u300c\u8981\u7d20\u3092\u3064\u306a\u3052\u308b\u30fb\u4e57\u305b\u308b\u300d<\/strong>\u65b9\u6cd5\u3067\u30d5\u30e9\u30c3\u30c8\u306aXML\u306e\u8a18\u8ff0\u304c\u3067\u304d\u3066\u3044\u308b\u3068\u611f\u3058\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2><strong>space\u30bf\u30b0\u3092\u4f7f\u3046\u3068XML\u306e\u8a18\u8ff0\u3092\u30b7\u30f3\u30d7\u30eb\u3067\u304b\u3064\u77ed\u304f\u63cf\u3051\u305f<\/strong><\/h2>\n<p>ConstraintLayout\u3067\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u7d44\u3093\u3067\u3044\u308b\u6642\u306b\u3001\u8981\u7d20\u3054\u3068\u306b\u30de\u30fc\u30b8\u30f3\u3084\u30d1\u30c7\u30a3\u30f3\u30b0\u306e\u3064\u3051\u5fd8\u308c\u304c\u306a\u3044\u304b\u8003\u3048\u308b\u306e\u304c\u5acc\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\n\u3082\u3063\u3068\u30ec\u30a4\u30a2\u30a6\u30c8XML\u306e\u8a18\u8ff0\u3092\u30b7\u30f3\u30d7\u30eb\u3067\u304b\u3064\u77ed\u304f\u66f8\u3051\u308b\u306e\u3067\u306f\uff1f\u3068\u601d\u3063\u305f\u6b21\u7b2c\u3067\u3059\u3002<br \/>\n\u30ec\u30a4\u30a2\u30a6\u30c8XML\u8a18\u8ff0\u304c\u77ed\u304f\u306a\u308b\u3068\u5185\u5bb9\u304c\u78ba\u8a8d\u3057\u3084\u3059\u304f\u306a\u308a\u7dba\u9e97\u306aXML\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\nspace\u30bf\u30b0\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067View\u306e\u5f79\u5272\u3092\u660e\u78ba\u306b\u3057\u3001\u8981\u7d20\u3054\u3068\u306e\u5171\u901a\u30de\u30fc\u30b8\u30f3\u3084\u30d1\u30c7\u30a3\u30f3\u30b0\u306e\u8a18\u8ff0\u3092\u7121\u304f\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h2><strong>space<\/strong><\/h2>\n<p><a href=\"https:\/\/developer.android.com\/reference\/android\/widget\/Space.html\">https:\/\/developer.android.com\/reference\/android\/widget\/Space.html<\/a><br \/>\nAndroid4.0\u304b\u3089\u8ffd\u52a0\u3055\u308c\u3066\u3044\u305f\u3093\u3067\u3059\u306d\u3002\u77e5\u3089\u306a\u304b\u3063\u305f&#8230;\u3002<\/p>\n<h2><strong>\u5404\u30ec\u30a4\u30a2\u30a6\u30c8\u3054\u3068\u306b\u6bd4\u8f03\u3057\u3066\u3044\u304f<\/strong><\/h2>\n<p>\u4e0b\u8a18\u306e\u753b\u50cf\u3092\u30c6\u30fc\u30de\u3054\u3068\u306bXML\u306b\u7d44\u3093\u3067\u6bd4\u8f03\u3057\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\n<strong>\u2460LinearLayout\u3067\u30ec\u30a4\u30a2\u30a6\u30c8\u3059\u308b<\/strong><br \/>\n<strong>\u2461LinearLayout\u3067\u30ec\u30a4\u30a2\u30a6\u30c8\u3057\u305fXML\u3092ConstraintLayout\u306b\u5909\u3048\u308b<\/strong><br \/>\n<strong>\u2462ConstraintLayout\uff0bspace\u3067\u30ec\u30a4\u30a2\u30a6\u30c8\u3059\u308b<\/strong><\/p>\n<p><a href=\"https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/01\/android_pic_2_1.png\"><img loading=\"lazy\" class=\"alignnone size-large wp-image-5073\" src=\"https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/01\/android_pic_2_1-1024x835.png\" alt=\"\" width=\"1024\" height=\"835\" srcset=\"https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/01\/android_pic_2_1-1024x835.png 1024w, https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/01\/android_pic_2_1-300x245.png 300w, https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/01\/android_pic_2_1-768x627.png 768w, https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/01\/android_pic_2_1.png 1390w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>\u5404\u30c6\u30fc\u30de\u306eXML\u306e\u5185\u5bb9\u306f\u9055\u3044\u307e\u3059\u304c\u3001\u753b\u9762\u306b\u8868\u793a\u3055\u308c\u308bView\u306f\u540c\u3058\u306a\u306e\u3067\u6bd4\u8f03\u304c\u96e3\u3057\u3044\u3067\u3059\u3002<br \/>\n\u958b\u767a\u8005\u5411\u3051\u30aa\u30d7\u30b7\u30e7\u30f3\u306e[\u30ec\u30a4\u30a2\u30a6\u30c8\u5883\u754c\u3092\u8868\u793a]\u3092\u6709\u52b9\u306b\u3057\u3066\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u5883\u754c\u7dda\u3092\u78ba\u8a8d\u3057\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/01\/android_pic_1_1.png\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-5074\" src=\"https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/01\/android_pic_1_1.png\" alt=\"\" width=\"781\" height=\"629\" srcset=\"https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/01\/android_pic_1_1.png 781w, https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/01\/android_pic_1_1-300x242.png 300w, https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/01\/android_pic_1_1-768x619.png 768w\" sizes=\"(max-width: 781px) 100vw, 781px\" \/><\/a><\/p>\n<h2><strong>\u2460LinearLayout\u3067\u30ec\u30a4\u30a2\u30a6\u30c8\u3059\u308b<\/strong><\/h2>\n<p>LinearLayout\u3067\u7d44\u3080\u5834\u5408\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u306a\u3089\u3056\u308b\u3092\u5f97\u306a\u3044\u306e\u3067\u306f\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\nLinearLayout:orientation=&#8221;vertical&#8221;\u3067\u7e26\u306b\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u4e26\u3079\u3066\u3001<br \/>\n\u6a2a\u4e26\u3073\u306b\u3059\u308b\u7b87\u6240\u306fLinearLayout:orientation=&#8221;horizontal&#8221;\u3092\u5165\u308c\u5b50\u306b\u3057\u307e\u3059\u3002<br \/>\n\u3055\u3089\u306b\u305d\u306e\u4e2d\u3067\u7e26\u4e26\u3073\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306bLinearLayout:orientation=&#8221;vertical&#8221;\u3092\u5165\u308c\u5b50\u306b\u3057\u3066\u30c7\u30b6\u30a4\u30f3\u3092\u8868\u73fe\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<pre>\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\"\n    xmlns:app=\"http:\/\/schemas.android.com\/apk\/res-auto\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:orientation=\"vertical\">\n    <!--\u30bf\u30a4\u30c8\u30eb\u30c6\u30ad\u30b9\u30c8-->\n    <TextView\n        android:id=\"@+id\/titleText\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginStart=\"16dp\"\n        android:layout_marginTop=\"16dp\"\n        android:layout_marginEnd=\"16dp\"\n        android:gravity=\"center_horizontal\"\n        android:text=\"\u753b\u50cf\u30bf\u30a4\u30c8\u30eb\"\n        android:textSize=\"30sp\" \/>\n    <!--\u30c8\u30c3\u30d7\u753b\u50cf-->\n    <ImageView\n        android:id=\"@+id\/imageView\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"200dp\"\n        android:layout_marginStart=\"16dp\"\n        android:layout_marginTop=\"16dp\"\n        android:layout_marginEnd=\"16dp\"\n        android:scaleType=\"centerCrop\"\n        android:src=\"@drawable\/ic_launcher_background\" \/>\n\n    <LinearLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginStart=\"16dp\"\n        android:layout_marginTop=\"24dp\"\n        android:orientation=\"horizontal\">\n        <!--\u30e1\u30cb\u30e5\u30fc\u3078\u306e\u9077\u79fb\u30dc\u30bf\u30f3-->\n        <ImageButton\n            android:id=\"@+id\/imageButton\"\n            android:layout_width=\"62dp\"\n            android:layout_height=\"62dp\"\n            android:src=\"@drawable\/ic_launcher_background\" \/>\n\n        <LinearLayout\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:layout_marginStart=\"8dp\"\n            android:orientation=\"vertical\">\n            <!--\u30e1\u30cb\u30e5\u30fc\u306e\u30bf\u30a4\u30c8\u30eb-->\n            <TextView\n                android:id=\"@+id\/imageTitleText\"\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:text=\"\u753b\u50cf\u30a2\u30a4\u30b3\u30f3\u306e\u30bf\u30a4\u30c8\u30eb\u3067\u3059\"\n                android:textSize=\"24sp\" \/>\n            <!--\u30e1\u30cb\u30e5\u30fc\u306e\u8aac\u660e\u6587-->\n            <TextView\n                android:id=\"@+id\/imageDetailText\"\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:text=\"\u8a73\u7d30\u30c6\u30ad\u30b9\u30c8\u3067\u3059\"\n                android:textSize=\"24sp\" \/>\n        <\/LinearLayout>\n    <\/LinearLayout>\n<\/LinearLayout>\n<\/pre>\n<p>\u30ec\u30a4\u30a2\u30a6\u30c8\u5883\u754c\u306e\u30d4\u30f3\u30af\u306e\u90e8\u5206\u304c\u30de\u30fc\u30b8\u30f3\u3067\u3059\u3002<br \/>\n\u5168\u8981\u7d20\u306b\u30de\u30fc\u30b8\u30f3\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u306e\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/01\/android_pic_3_1.png\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-5075\" src=\"https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/01\/android_pic_3_1.png\" alt=\"\" width=\"823\" height=\"591\" srcset=\"https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/01\/android_pic_3_1.png 823w, https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/01\/android_pic_3_1-300x215.png 300w, https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/01\/android_pic_3_1-768x552.png 768w\" sizes=\"(max-width: 823px) 100vw, 823px\" \/><\/a><\/p>\n<h2><strong>\u2461LinearLayout\u3067\u30ec\u30a4\u30a2\u30a6\u30c8\u3057\u305fXML\u3092ConstraintLayout\u306b\u5909\u3048\u308b<br \/>\n<\/strong><\/h2>\n<p>LinearLayout\u3092\u4f7f\u7528\u3057\u306a\u3044\u3067\u3001app:layout_constraint<strong>\u25cb\u25cb<\/strong>_to<strong>\u25cb\u25cb<\/strong>Of\u306e\u8a18\u8ff0\u3067\u5404\u8981\u7d20\u3092\u3064\u306a\u3052\u3066\u30c7\u30b6\u30a4\u30f3\u3092\u8868\u73fe\u3057\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\n\u5165\u308c\u5b50\u304c\u306a\u304f\u306a\u3063\u305f\u306e\u3067XML\u306e\u5185\u5bb9\u304c\u3059\u3063\u304d\u308a\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre>\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<androidx.constraintlayout.widget.ConstraintLayout xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\"\n    xmlns:app=\"http:\/\/schemas.android.com\/apk\/res-auto\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\">\n    <!--\u30bf\u30a4\u30c8\u30eb\u30c6\u30ad\u30b9\u30c8-->\n    <TextView\n        android:id=\"@+id\/titleText\"\n        android:layout_width=\"0dp\"\n        android:layout_height=\"wrap_content\"\n        android:text=\"\u753b\u50cf\u30bf\u30a4\u30c8\u30eb\"\n        android:textSize=\"30sp\"\n        android:layout_marginStart=\"16dp\"\n        android:layout_marginTop=\"16dp\"\n        android:layout_marginEnd=\"16dp\"\n        android:gravity=\"center_horizontal\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintStart_toStartOf=\"parent\"\n        app:layout_constraintTop_toTopOf=\"parent\" \/>\n    <!--\u30c8\u30c3\u30d7\u753b\u50cf-->\n    <ImageView\n        android:id=\"@+id\/imageView\"\n        android:layout_width=\"0dp\"\n        android:layout_height=\"200dp\"\n        android:layout_marginStart=\"16dp\"\n        android:layout_marginTop=\"16dp\"\n        android:layout_marginEnd=\"16dp\"\n        android:scaleType=\"centerCrop\"\n        android:src=\"@drawable\/ic_launcher_background\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintStart_toStartOf=\"parent\"\n        app:layout_constraintTop_toBottomOf=\"@+id\/titleText\" \/>\n    <!--\u30e1\u30cb\u30e5\u30fc\u3078\u306e\u9077\u79fb\u30dc\u30bf\u30f3-->\n    <ImageButton\n        android:id=\"@+id\/imageButton\"\n        android:layout_width=\"62dp\"\n        android:layout_height=\"62dp\"\n        android:layout_marginStart=\"16dp\"\n        android:src=\"@drawable\/ic_launcher_background\"\n        app:layout_constraintBottom_toBottomOf=\"@+id\/imageDetailText\"\n        app:layout_constraintStart_toStartOf=\"parent\"\n        app:layout_constraintTop_toTopOf=\"@+id\/imageTitleText\" \/>\n    <!--\u30e1\u30cb\u30e5\u30fc\u306e\u30bf\u30a4\u30c8\u30eb-->\n    <TextView\n        android:id=\"@+id\/imageTitleText\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginStart=\"8dp\"\n        android:layout_marginTop=\"24dp\"\n        android:text=\"\u753b\u50cf\u30a2\u30a4\u30b3\u30f3\"\n        android:textSize=\"24sp\"\n        app:layout_constraintStart_toEndOf=\"@+id\/imageButton\"\n        app:layout_constraintTop_toBottomOf=\"@+id\/imageView\" \/>\n    <!--\u30e1\u30cb\u30e5\u30fc\u306e\u8aac\u660e\u6587-->\n    <TextView\n        android:id=\"@+id\/imageDetailText\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:text=\"\u8a73\u7d30\u30c6\u30ad\u30b9\u30c8\"\n        android:textSize=\"24sp\"\n        app:layout_constraintStart_toStartOf=\"@+id\/imageTitleText\"\n        app:layout_constraintTop_toBottomOf=\"@+id\/imageTitleText\" \/>\n<\/androidx.constraintlayout.widget.ConstraintLayout>\n<\/pre>\n<p>\u30de\u30fc\u30b8\u30f3\u304c\u6307\u5b9a\u3055\u308c\u305f\u8981\u7d20\u306b\u3060\u3051\u5b58\u5728\u3057\u3066\u3044\u3066\u30ac\u30bf\u30ac\u30bf\u3057\u3066\u3044\u308b\u5370\u8c61\u3067\u3059\u3002<br \/>\n<a href=\"https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/01\/android_pic_5_1.png\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-5076\" src=\"https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/01\/android_pic_5_1.png\" alt=\"\" width=\"772\" height=\"591\" srcset=\"https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/01\/android_pic_5_1.png 772w, https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/01\/android_pic_5_1-300x230.png 300w, https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/01\/android_pic_5_1-768x588.png 768w\" sizes=\"(max-width: 772px) 100vw, 772px\" \/><\/a><\/p>\n<h2><strong>\u2462ConstraintLayout\uff0bspace\u3067\u30ec\u30a4\u30a2\u30a6\u30c8\u3059\u308b<\/strong><\/h2>\n<p>space\u30bf\u30b0\u3092\u8ffd\u52a0\u3057\u3066\u4f59\u8a08\u306a\u30de\u30fc\u30b8\u30f3\u3092\u9664\u53bb\u3057\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\nspace\u306e\u5f79\u5272\u306fView\u5171\u901a\u306e\u4f59\u767d\u3068\u3057\u3066\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u5927\u62b5\u306e\u30c7\u30b6\u30a4\u30f3\u306b\u306f\u4e0a\u4e0b\u5de6\u53f3\u306b\u5171\u901a\u306e\u4f59\u767d\u3063\u3066\u3042\u308a\u307e\u3059\u3088\u306d\u3002<\/p>\n<p>XML\u306e\u8a18\u8ff0\u91cf\u306f\u5897\u3048\u307e\u3059\u304c\u4e0a\u4e0b\u5de6\u53f3\u306espace\u3092\u4e00\u5ea6\u8a18\u8ff0\u3059\u308b\u3060\u3051\u3067\u826f\u304f\u306a\u308a\u307e\u3059\u3002<br \/>\n\u30de\u30fc\u30b8\u30f3\u306e\u5909\u308f\u308a\u306blayout_constraintXX\u3067\u4e0a\u4e0b\u5de6\u53f3\u306espace\u306b\u5bfe\u3057\u3066\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u7e4b\u3052\u307e\u3059\u3002<\/p>\n<pre>\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<androidx.constraintlayout.widget.ConstraintLayout xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\"\n    xmlns:app=\"http:\/\/schemas.android.com\/apk\/res-auto\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\">\n    <!--\u7e26\u306e\u4f59\u767d-->\n    <Space\n        android:id=\"@+id\/spaceTop\"\n        android:layout_width=\"0dp\"\n        android:layout_height=\"16dp\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintStart_toStartOf=\"parent\"\n        app:layout_constraintTop_toTopOf=\"parent\" \/>\n    <!--\u5de6\u306e\u4f59\u767d-->\n    <Space\n        android:id=\"@+id\/spaceStart\"\n        android:layout_width=\"16dp\"\n        android:layout_height=\"0dp\"\n        app:layout_constraintBottom_toBottomOf=\"parent\"\n        app:layout_constraintStart_toStartOf=\"parent\"\n        app:layout_constraintTop_toTopOf=\"parent\" \/>\n    <!--\u53f3\u306e\u4f59\u767d-->\n    <Space\n        android:id=\"@+id\/spaceEnd\"\n        android:layout_width=\"16dp\"\n        android:layout_height=\"0dp\"\n        app:layout_constraintBottom_toBottomOf=\"parent\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintTop_toTopOf=\"parent\" \/>\n    <!--\u30dc\u30bf\u30f3\u53f3\u306e\u4f59\u767d-->\n    <Space\n        android:id=\"@+id\/spaceButtonEnd\"\n        android:layout_width=\"8dp\"\n        android:layout_height=\"0dp\"\n        app:layout_constraintBottom_toBottomOf=\"@+id\/imageButton\"\n        app:layout_constraintStart_toEndOf=\"@+id\/imageButton\"\n        app:layout_constraintTop_toTopOf=\"@+id\/imageButton\" \/>\n    <!--\u30bf\u30a4\u30c8\u30eb\u30c6\u30ad\u30b9\u30c8-->\n    <TextView\n        android:id=\"@+id\/titleText\"\n        android:layout_width=\"0dp\"\n        android:layout_height=\"wrap_content\"\n        android:text=\"\u753b\u50cf\u30bf\u30a4\u30c8\u30eb\"\n        android:textSize=\"30sp\"\n        android:gravity=\"center_horizontal\"\n        app:layout_constraintEnd_toStartOf=\"@+id\/spaceEnd\"\n        app:layout_constraintStart_toEndOf=\"@+id\/spaceStart\"\n        app:layout_constraintTop_toBottomOf=\"@+id\/spaceTop\" \/>\n    <!--\u30c8\u30c3\u30d7\u753b\u50cf-->\n    <ImageView\n        android:id=\"@+id\/imageView\"\n        android:layout_width=\"0dp\"\n        android:layout_height=\"200dp\"\n        android:layout_marginTop=\"16dp\"\n        android:scaleType=\"centerCrop\"\n        android:src=\"@drawable\/ic_launcher_background\"\n        app:layout_constraintEnd_toStartOf=\"@+id\/spaceEnd\"\n        app:layout_constraintStart_toEndOf=\"@+id\/spaceStart\"\n        app:layout_constraintTop_toBottomOf=\"@+id\/titleText\" \/>\n    <!--\u30e1\u30cb\u30e5\u30fc\u3078\u306e\u9077\u79fb\u30dc\u30bf\u30f3-->\n    <ImageButton\n        android:id=\"@+id\/imageButton\"\n        android:layout_width=\"62dp\"\n        android:layout_height=\"62dp\"\n        android:src=\"@drawable\/ic_launcher_background\"\n        app:layout_constraintBottom_toBottomOf=\"@+id\/imageDetailText\"\n        app:layout_constraintStart_toEndOf=\"@+id\/spaceStart\"\n        app:layout_constraintTop_toTopOf=\"@+id\/imageTitleText\" \/>\n    <!--\u30e1\u30cb\u30e5\u30fc\u306e\u30bf\u30a4\u30c8\u30eb-->\n    <TextView\n        android:id=\"@+id\/imageTitleText\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginTop=\"24dp\"\n        android:text=\"\u753b\u50cf\u30a2\u30a4\u30b3\u30f3\"\n        android:textSize=\"24sp\"\n        app:layout_constraintStart_toEndOf=\"@+id\/spaceButtonEnd\"\n        app:layout_constraintTop_toBottomOf=\"@+id\/imageView\" \/>\n    <!--\u30e1\u30cb\u30e5\u30fc\u306e\u8aac\u660e\u6587-->\n    <TextView\n        android:id=\"@+id\/imageDetailText\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:text=\"\u8a73\u7d30\u30c6\u30ad\u30b9\u30c8\"\n        android:textSize=\"24sp\"\n        app:layout_constraintStart_toEndOf=\"@+id\/spaceButtonEnd\"\n        app:layout_constraintTop_toBottomOf=\"@+id\/imageTitleText\" \/>\n<\/androidx.constraintlayout.widget.ConstraintLayout>\n<\/pre>\n<p><a href=\"https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/01\/android_pic_6_1.png\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-5077\" src=\"https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/01\/android_pic_6_1.png\" alt=\"\" width=\"727\" height=\"581\" srcset=\"https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/01\/android_pic_6_1.png 727w, https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/01\/android_pic_6_1-300x240.png 300w\" sizes=\"(max-width: 727px) 100vw, 727px\" \/><\/a><\/p>\n<p>\u4e0a\u8a18\u306e\u5b9f\u88c5\u3092\u3059\u308b\u3053\u3068\u3067\u3001\u7e26\u6a2a\u306e\u4f59\u767d\u306e\u5e45\u3092\u5909\u66f4\u3057\u305f\u3044\u6642\u306f\u5404space\u306ewidth\u30fbheight\u306e\u5024\u3092\u5909\u3048\u308b\u3060\u3051\u3067\u826f\u304f\u306a\u308a\u307e\u3059\u3002<br \/>\n\u305d\u3082\u305d\u3082\u30de\u30fc\u30b8\u30f3\u3092\u66f8\u304b\u306a\u304f\u3066\u826f\u304f\u306a\u308b\u306e\u3067\u3001\u3064\u3051\u5fd8\u308c\u3092\u5fc3\u914d\u3059\u308b\u5fc5\u8981\u3082\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u4eca\u56de\u306fView\u306e\u6570\u304c\u5c11\u306a\u3044\u306e\u3067\u5197\u9577\u3067\u3059\u304c\u3001View\u306e\u6570\u304c\u5897\u3048\u308b\u307b\u3069\u52b9\u679c\u304c\u3042\u308b\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002<br \/>\n\u5225\u306bspace\u3092\u4f7f\u308f\u306a\u304f\u3066\u3082\u3001\u30de\u30fc\u30b8\u30f3\u306e\u5024\u3092dimen\u3067\u5b9a\u7fa9\u3057\u3066\u3044\u308c\u3070\u4e00\u62ec\u3067\u5024\u306e\u5909\u66f4\u3082\u3067\u304d\u307e\u3059\u304c\u3001<br \/>\nView\u306e\u5f79\u5272\u3092\u4e00\u5ea6\u8003\u3048\u3066\u307f\u308b\u3053\u3068\u304c\u3001\u30ec\u30a4\u30a2\u30a6\u30c8XML\u306e\u8a18\u8ff0\u3092\u30b7\u30f3\u30d7\u30eb\u306b\u66f8\u3051\u308b\u3053\u3068\u306b\u7e4b\u304c\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SRIA\u306e\u4f50\u85e4\uff08\u7422\uff09\u3067\u3059\u3002 \u307f\u306a\u3055\u3093\bAndroid\u958b\u767a\u3057\u3066\u307e\u3059\u304b\uff1f \u4eca\u56de\u306fConstraintLayout\u306e\u304a\u8a71\u3067\u3059\u3002 ConstraintLayout\u3092\u4f7f\u3063\u3066\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u7d44\u3080\u3068\u3001View\u306e\u6539\u88c5\u304c\u5c11\u306a\u304f\u306a\u3063\u3066\u30d1\u30d5\u30a9\u30fc\u30de&#8230;<\/p>\n","protected":false},"author":8,"featured_media":5142,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[15],"tags":[45,227],"_links":{"self":[{"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/posts\/5049"}],"collection":[{"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/comments?post=5049"}],"version-history":[{"count":73,"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/posts\/5049\/revisions"}],"predecessor-version":[{"id":5180,"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/posts\/5049\/revisions\/5180"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/media\/5142"}],"wp:attachment":[{"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/media?parent=5049"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/categories?post=5049"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/tags?post=5049"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}