{"id":769,"date":"2023-07-20T15:25:20","date_gmt":"2023-07-07T14:22:54","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/android%e3%81%aeconstraintlayout%e3%81%ae%e4%be%8b%e3%81%ab%e9%96%a2%e3%81%99%e3%82%8b%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/"},"modified":"2025-08-01T02:18:45","modified_gmt":"2025-07-31T17:18:45","slug":"android%e3%81%aeconstraintlayout%e3%81%ae%e4%be%8b%e3%81%ab%e9%96%a2%e3%81%99%e3%82%8b%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/android%e3%81%aeconstraintlayout%e3%81%ae%e4%be%8b%e3%81%ab%e9%96%a2%e3%81%99%e3%82%8b%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/","title":{"rendered":"Android\u306eConstraintLayout\u306e\u4f8b\u306b\u95a2\u3059\u308b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb"},"content":{"rendered":"<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Android\u306eConstraintLayout\u306e\u8907\u96d1\u3055\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002Google\u306f2016\u5e74\u306eGoogle I\/O Conference\u3067Android\u306eConstraint Layout\u30a8\u30c7\u30a3\u30bf\u30fc\u3092\u5c0e\u5165\u3057\u307e\u3057\u305f\u3002\u65b0\u3057\u3044\u30ec\u30a4\u30a2\u30a6\u30c8\u30a8\u30c7\u30a3\u30bf\u30fc\u306b\u306f\u3001\u958b\u767a\u8005\u304c\u8907\u96d1\u306a\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u305f\u3081\u306b\u30d5\u30e9\u30c3\u30c8UI\u968e\u5c64\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306e\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u30bb\u30c3\u30c8\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306eConstraintLayout<\/h2>\n<p>Android Studio\u306e\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3001Android\u306eConstraintLayout\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u7406\u60f3\u7684\u306b\u306f\u3001Android Studio 2.2\u4ee5\u4e0a\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002SDK\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u304b\u3089ConstraintLayout\u306e\u305f\u3081\u306e\u5fc5\u8981\u306aSDK\u30c4\u30fc\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u65b0\u3057\u3044\u7a7a\u306e\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u3001build.gradle\u30d5\u30a1\u30a4\u30eb\u5185\u306b\u4ee5\u4e0b\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002compile &#8216;com.android.support.constraint:constraint-layout:1.0.0-beta4&#8217; \u4ee5\u4e0b\u306e\u30a4\u30e1\u30fc\u30b8\u306b\u793a\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u306b\u3001\u30eb\u30fc\u30c8\u30af\u30e9\u30b9\u3092ConstraintLayout\u306b\u8a2d\u5b9a\u3057\u305f\u65b0\u3057\u3044\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u53e4\u3044\u30ec\u30a4\u30a2\u30a6\u30c8\u3092ConstraintLayout\u306b\u5909\u63db\u3059\u308b\u306b\u306f\u3001\u5bfe\u5fdc\u3059\u308b\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u30c7\u30b6\u30a4\u30f3\u30da\u30a4\u30f3\u3092\u958b\u304d\u3001\u30eb\u30fc\u30c8\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3001\u4ee5\u4e0b\u306e\u30a4\u30e1\u30fc\u30b8\u306b\u793a\u3055\u308c\u3066\u3044\u308b\u9069\u5207\u306a\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<h3>Android\u306eConstraint Layout\u306e\u6982\u8981<\/h3>\n<p>Android\u306eConstraintLayout\u306f\u3001\u5404\u5b50\u30d3\u30e5\u30fc\/\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306b\u5bfe\u3057\u3066\u4ed6\u306e\u30d3\u30e5\u30fc\u306b\u5bfe\u3059\u308b\u5236\u7d04\u3092\u5272\u308a\u5f53\u3066\u308b\u3053\u3068\u3067\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u5b9a\u7fa9\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002ConstraintLayout\u306fRelativeLayout\u306b\u4f3c\u3066\u3044\u307e\u3059\u304c\u3001\u3088\u308a\u9ad8\u3044\u6a5f\u80fd\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002ConstraintLayout\u306e\u76ee\u7684\u306f\u3001\u30cd\u30b9\u30c8\u3055\u308c\u305f\u30d3\u30e5\u30fc\u3092\u30d5\u30e9\u30c3\u30c8\u3067\u67d4\u8edf\u306a\u30c7\u30b6\u30a4\u30f3\u3067\u6392\u9664\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u3067\u3059\u3002ConstraintLayout\u5185\u306e\u30d3\u30e5\u30fc\u306b\u306f\u3001\u5404\u5074\u9762\u306b\u30cf\u30f3\u30c9\u30eb\uff08\u307e\u305f\u306f\u30a2\u30f3\u30ab\u30fc\u30dd\u30a4\u30f3\u30c8\uff09\u304c\u3042\u308a\u3001\u5236\u7d04\u3092\u5272\u308a\u5f53\u3066\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u30ec\u30a4\u30a2\u30a6\u30c8\u306bTextView\u3092\u30c9\u30e9\u30c3\u30b0\u30a2\u30f3\u30c9\u30c9\u30ed\u30c3\u30d7\u3057\u3066\u3001\u305d\u308c\u306b\u5236\u7d04\u3092\u5272\u308a\u5f53\u3066\u307e\u3057\u3087\u3046\u3002\u4e0a\u8a18\u306eTextView\u306b\u306f\u30013\u7a2e\u985e\u306e\u30cf\u30f3\u30c9\u30eb\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30ea\u30b5\u30a4\u30ba\u30cf\u30f3\u30c9\u30eb &#8211; \u305d\u308c\u306f\u56db\u9685\u306b\u5b58\u5728\u3057\u3001\u30d3\u30e5\u30fc\u306e\u30b5\u30a4\u30ba\u3092\u5909\u66f4\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u304c\u3001\u5236\u7d04\u6761\u4ef6\u306f\u7dad\u6301\u3055\u308c\u307e\u3059\u3002\u30b5\u30a4\u30c9\u30cf\u30f3\u30c9\u30eb &#8211; \u305d\u308c\u306f\u5404\u8fba\u306e\u4e2d\u592e\u306b\u3042\u308b\u5186\u5f62\u306e\u30cf\u30f3\u30c9\u30eb\u3067\u3059\u3002\u30d3\u30e5\u30fc\u306e\u4e0a\u90e8\u3001\u5de6\u90e8\u3001\u4e0b\u90e8\u3001\u304a\u3088\u3073\u53f3\u90e8\u306e\u5236\u7d04\u6761\u4ef6\u306e\u8a2d\u5b9a\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u30d9\u30fc\u30b9\u30e9\u30a4\u30f3\u30cf\u30f3\u30c9\u30eb &#8211; \u3053\u308c\u306f\u30ec\u30a4\u30a2\u30a6\u30c8\u5185\u306e\u5225\u306e\u30c6\u30ad\u30b9\u30c8\u30d3\u30e5\u30fc\u3068\u30d9\u30fc\u30b9\u30e9\u30a4\u30f3\u3092\u5408\u308f\u305b\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>TextView \u306e\u5236\u7d04\u3092\u5272\u308a\u5f53\u3066\u3066\u3001\u305d\u306e XML \u30b3\u30fc\u30c9\u3092\u8abf\u3079\u307e\u3057\u3087\u3046\u3002\u53f3\u5074\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u30a4\u30f3\u30b9\u30da\u30af\u30bf\u30fc\u30da\u30a4\u30f3\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u305d\u3053\u306b\u306f\u30d3\u30e5\u30fc\u306e\u5404\u5074\u9762\u306b\u8a2d\u5b9a\u3055\u308c\u305f\u30de\u30fc\u30b8\u30f3\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u307e\u305f\u3001\u30d3\u30e5\u30fc\u306e\u30b5\u30a4\u30ba\u3092\u4ee5\u4e0b\u306e\u30e2\u30fc\u30c9\u306e\u5207\u308a\u66ff\u3048\u306b\u3088\u3063\u3066\u5909\u66f4\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>Wrap Content &#8211; This wraps the view to fill it\u2019s content.<\/li>\n<li>Any Size &#8211; This is similar to match parent.<\/li>\n<li>Fixed Size &#8211; This allows us to set constant width and height.<\/li>\n<\/ul>\n<p>\u4e0a\u8a18\u30ec\u30a4\u30a2\u30a6\u30c8\u306eXML\u30b3\u30fc\u30c9\u306f\u3001sample.xml\u3068\u3044\u3046\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\r\n&lt;android.support.constraint.ConstraintLayout\r\n    xmlns:android=\"https:\/\/schemas.android.com\/apk\/res\/android\"\r\n    xmlns:app=\"https:\/\/schemas.android.com\/apk\/res-auto\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"match_parent\"&gt;\r\n\r\n    &lt;TextView\r\n        android:text=\"TextView\"\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:id=\"@+id\/textView\"\r\n        android:layout_marginStart=\"16dp\"\r\n        android:layout_marginTop=\"16dp\"\r\n        app:layout_constraintLeft_toLeftOf=\"parent\"\r\n        app:layout_constraintTop_toTopOf=\"parent\"\r\n        android:layout_marginLeft=\"16dp\"\r\n        android:layout_marginEnd=\"16dp\"\r\n        app:layout_constraintRight_toRightOf=\"parent\"\r\n        android:layout_marginRight=\"16dp\" \/&gt;\r\n&lt;\/android.support.constraint.ConstraintLayout&gt;\r\n<\/code><\/pre>\n<ul class=\"post-ul\">\n<li>app:layout_constraintLeft_toLeftOf=&#8221;parent&#8221; &#8211; constraintLeft is the anchor point to the left of the view. toLeftOf signifies aligning the view to the left of the assigned view which is \u201cparent\u201d in this case.<br \/>\nWhen the absolute positions are set on the view, the xml properties that are used are &#8211;<\/li>\n<\/ul>\n<pre class=\"post-pre\"><code>tools:layout_editor_absoluteY=\"48dp\"\r\ntools:layout_editor_absoluteX=\"40dp\"\r\n<\/code><\/pre>\n<p>\u3082\u30461\u3064\u306e\u30c6\u30ad\u30b9\u30c8\u30d3\u30e5\u30fc\u3092\u8ffd\u52a0\u3057\u3001\u30d9\u30fc\u30b9\u30e9\u30a4\u30f3\u3092\u63c3\u3048\u307e\u3057\u3087\u3046\u3002\u4e0a\u8a18\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u306eXML\u30b3\u30fc\u30c9\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\r\n&lt;android.support.constraint.ConstraintLayout\r\n    xmlns:android=\"https:\/\/schemas.android.com\/apk\/res\/android\"\r\n    xmlns:app=\"https:\/\/schemas.android.com\/apk\/res-auto\"\r\n    xmlns:tools=\"https:\/\/schemas.android.com\/tools\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"match_parent\"&gt;\r\n\r\n    &lt;TextView\r\n        android:text=\"TextView\"\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:id=\"@+id\/textView\"\r\n        android:layout_marginStart=\"16dp\"\r\n        app:layout_constraintLeft_toLeftOf=\"parent\"\r\n        android:layout_marginLeft=\"16dp\"\r\n        android:layout_marginEnd=\"16dp\"\r\n        app:layout_constraintRight_toRightOf=\"parent\"\r\n        android:layout_marginRight=\"16dp\"\r\n        android:layout_marginTop=\"16dp\"\r\n        app:layout_constraintTop_toTopOf=\"parent\" \/&gt;\r\n\r\n    &lt;TextView\r\n        android:text=\"TextView\"\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:id=\"@+id\/textView2\"\r\n        app:layout_constraintBaseline_toBaselineOf=\"@+id\/textView\"\r\n        android:layout_marginStart=\"16dp\"\r\n        app:layout_constraintLeft_toLeftOf=\"parent\"\r\n        android:layout_marginLeft=\"16dp\"\r\n        app:layout_constraintRight_toLeftOf=\"@+id\/textView\"\r\n        android:layout_marginEnd=\"8dp\"\r\n        android:layout_marginRight=\"8dp\" \/&gt;\r\n\r\n&lt;\/android.support.constraint.ConstraintLayout&gt;\r\n<\/code><\/pre>\n<p>\u81ea\u52d5\u63a5\u7d9a\u3068\u63a8\u8ad6\u3068\u3044\u30462\u3064\u306e\u30c4\u30fc\u30eb\u3082\u3042\u308a\u3001\u3053\u308c\u3089\u306f\u5236\u7d04\u3092\u81ea\u52d5\u7684\u306b\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Option 1:<\/ol>\n<\/li>\n<\/ol>\n<p>Auto-Connect\uff08\u30aa\u30fc\u30c8\u30b3\u30cd\u30af\u30c8\uff09 &#8211; \u3053\u306e\u6a5f\u80fd\u306f\u30af\u30ea\u30c3\u30af\u3067\u6709\u52b9\u306b\u3067\u304d\u307e\u3059\uff1a\u305d\u306e\u540d\u524d\u304b\u3089\u3082\u308f\u304b\u308b\u3088\u3046\u306b\u3001\u30aa\u30fc\u30c8\u30b3\u30cd\u30af\u30c8\u306f\u96a3\u63a5\u3059\u308b\uff12\u3064\u306e\u30d3\u30e5\u30fc\u9593\u306b\u81ea\u52d5\u7684\u306b\u5236\u7d04\u3092\u4f5c\u308a\u307e\u3059\u3002<br \/>\nInference\uff08\u63a8\u8ad6\uff09 &#8211; \u3053\u306e\u6a5f\u80fd\u306f\u30af\u30ea\u30c3\u30af\u3067\u6709\u52b9\u306b\u3067\u304d\u307e\u3059\uff1a\u63a8\u8ad6\u30a8\u30f3\u30b8\u30f3\u306f\u30ec\u30a4\u30a2\u30a6\u30c8\u5185\u306e\u5168\u3066\u306e\u8981\u7d20\u9593\u306b\u5236\u7d04\u3092\u4f5c\u308a\u307e\u3059\u3002\u63a8\u8ad6\u30a8\u30f3\u30b8\u30f3\u306f\u3001\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306e\u4f4d\u7f6e\u3084\u30b5\u30a4\u30ba\u306a\u3069\u69d8\u3005\u306a\u8981\u7d20\u3092\u8003\u616e\u3057\u3001\u6700\u9069\u306a\u63a5\u7d9a\u3092\u898b\u3064\u3051\u51fa\u305d\u3046\u3068\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306bAuto-Connect\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u30c7\u30e2\u3092\u3054\u89a7\u3044\u305f\u3060\u3051\u307e\u3059\uff1a\u4e0a\u8a18\u306egif\u3067\u78ba\u8a8d\u3067\u304d\u308b\u3088\u3046\u306b\u3001\u5236\u7d04\u306f\u81ea\u52d5\u7684\u306b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u5316\u3055\u308c\u307e\u3059\u3002\u30d7\u30ed\u30d1\u30c6\u30a3\u30d1\u30cd\u30eb\u306b\u3042\u308b\u6c34\u5e73\u304a\u3088\u3073\u5782\u76f4\u306e\u30b9\u30e9\u30a4\u30c0\u30fc\u306b\u6ce8\u76ee\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u305d\u308c\u305e\u308c\u6c34\u5e73\u30d0\u30a4\u30a2\u30b9\u3068\u5782\u76f4\u30d0\u30a4\u30a2\u30b9\u3068\u547c\u3070\u308c\u307e\u3059\u3002\u3053\u308c\u3089\u306f\u30d3\u30e5\u30fc\u3092\u6c34\u5e73\u307e\u305f\u306f\u5782\u76f4\u8ef8\u306b\u6cbf\u3063\u3066\u4f4d\u7f6e\u4ed8\u3051\u308b\u305f\u3081\u306e\u30d0\u30a4\u30a2\u30b9\u5024\u3092\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u5236\u7d04\u4f4d\u7f6e\u306b\u5bfe\u3057\u3066\u76f8\u5bfe\u7684\u306a\u5024\u306b\u306a\u308a\u307e\u3059\u3002\u4e0a\u8a18\u306e\u30c7\u30e2\u306e\u305f\u3081\u306eXML\u30b3\u30fc\u30c9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\r\n&lt;android.support.constraint.ConstraintLayout\r\n    xmlns:android=\"https:\/\/schemas.android.com\/apk\/res\/android\"\r\n    xmlns:app=\"https:\/\/schemas.android.com\/apk\/res-auto\"\r\n    xmlns:tools=\"https:\/\/schemas.android.com\/tools\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"match_parent\"&gt;\r\n\r\n    &lt;ImageView\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\"\r\n        app:srcCompat=\"@mipmap\/ic_launcher\"\r\n        android:id=\"@+id\/imageView7\"\r\n        app:layout_constraintBottom_toBottomOf=\"parent\"\r\n        app:layout_constraintRight_toRightOf=\"parent\"\r\n        app:layout_constraintLeft_toLeftOf=\"parent\"\r\n        app:layout_constraintTop_toTopOf=\"parent\"\r\n        app:layout_constraintVertical_bias=\"0.58000004\"\r\n        app:layout_constraintHorizontal_bias=\"0.47\" \/&gt;\r\n&lt;\/android.support.constraint.ConstraintLayout&gt;\r\n<\/code><\/pre>\n<p>\u4ee5\u4e0b\u306b\u3001\u63a8\u8ad6\u6a5f\u80fd\u304c\u6709\u52b9\u5316\u3055\u308c\u305f\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u30c7\u30e2\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u4e0a\u8a18\u306eGIF\u306eXML\u30b3\u30fc\u30c9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\uff1a<\/p>\n<pre class=\"post-pre\"><code>&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\r\n&lt;android.support.constraint.ConstraintLayout\r\n    xmlns:android=\"https:\/\/schemas.android.com\/apk\/res\/android\"\r\n    xmlns:app=\"https:\/\/schemas.android.com\/apk\/res-auto\"\r\n    xmlns:tools=\"https:\/\/schemas.android.com\/tools\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"match_parent\"&gt;\r\n\r\n    &lt;TextView\r\n        android:text=\"TextView\"\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:id=\"@+id\/textView22\"\r\n        tools:layout_constraintRight_creator=\"1\"\r\n        tools:layout_constraintBottom_creator=\"1\"\r\n        app:layout_constraintBottom_toTopOf=\"@+id\/button2\"\r\n        app:layout_constraintRight_toRightOf=\"parent\"\r\n        tools:layout_constraintLeft_creator=\"1\"\r\n        android:layout_marginBottom=\"59dp\"\r\n        app:layout_constraintLeft_toLeftOf=\"parent\" \/&gt;\r\n\r\n    &lt;Button\r\n        android:text=\"Button\"\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:id=\"@+id\/button2\"\r\n        tools:layout_constraintTop_creator=\"1\"\r\n        tools:layout_constraintRight_creator=\"1\"\r\n        android:layout_marginEnd=\"31dp\"\r\n        app:layout_constraintRight_toRightOf=\"@+id\/textView22\"\r\n        android:layout_marginTop=\"178dp\"\r\n        app:layout_constraintTop_toTopOf=\"parent\"\r\n        android:layout_marginRight=\"31dp\" \/&gt;\r\n&lt;\/android.support.constraint.ConstraintLayout&gt;\r\n<\/code><\/pre>\n<p>tools:layout_constraintTop_creator=&#8221;1&#8243;\uff1a\u5236\u7d04\u3092\u4f5c\u6210\u3057\u305f\u4eba\u3092\u8ffd\u8de1\u3059\u308b\u305f\u3081\u306e\u4f5c\u6210\u8005\u5c5e\u6027\u3067\u3042\u308a\u3001\u7279\u306b\u63a8\u8ad6\u30a8\u30f3\u30b8\u30f3\u306b\u3088\u3063\u3066\u4f5c\u6210\u3055\u308c\u305f\u5834\u5408\u306f1\u3068\u5272\u308a\u5f53\u3066\u3089\u308c\u307e\u3059\u3002<\/p>\n<h3>\u5236\u7d04\u3092\u524a\u9664\u3059\u308b\u3002<\/h3>\n<p>\u500b\u5225\u306e\u5236\u7d04\u3092\u524a\u9664\u3059\u308b\u306b\u306f\u3001\u5186\u5f62\u306e\u30cf\u30f3\u30c9\u30eb\u306e\u4e0a\u306b\u30ab\u30fc\u30bd\u30eb\u3092\u5408\u308f\u305b\u3001\u8d64\u304f\u306a\u308b\u307e\u3067\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30d3\u30e5\u30fc\u306e\u3059\u3079\u3066\u306e\u5236\u7d04\u3092\u524a\u9664\u3059\u308b\u306b\u306f\u3001\u305d\u306e\u4e0b\u306b\u3042\u308b\u300c\u300d\u306e\u3088\u3046\u306a\u30b7\u30f3\u30dc\u30eb\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u4ee5\u4e0b\u306b\u30b5\u30f3\u30d7\u30eb\u306e\u30c7\u30e2GIF\u3092\u793a\u3057\u307e\u3059\u3002\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306f\u3053\u308c\u3067\u7d42\u4e86\u3067\u3059\u3002\u81ea\u5206\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u3044\u304f\u3064\u304b\u3092\u5236\u7d04\u30ec\u30a4\u30a2\u30a6\u30c8\u306b\u7f6e\u304d\u63db\u3048\u3066\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Android\u306eConstraintLayout\u306e\u8907\u96d1\u3055\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002Google\u306f2016\u5e74\u306eGoogle I\/O Conference\u3067Android\u306eConstraint Layout [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,61],"class_list":["post-769","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>Android\u306eConstraintLayout\u306e\u4f8b\u306b\u95a2\u3059\u308b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"Android\u306eConstraintLayout\u306e\u4f8b\u306b\u95a2\u3059\u308b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\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\/android\u306econstraintlayout\u306e\u4f8b\u306b\u95a2\u3059\u308b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Android\u306eConstraintLayout\u306e\u4f8b\u306b\u95a2\u3059\u308b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\" \/>\n<meta property=\"og:description\" content=\"Android\u306eConstraintLayout\u306e\u4f8b\u306b\u95a2\u3059\u308b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\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\/android\u306econstraintlayout\u306e\u4f8b\u306b\u95a2\u3059\u308b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-07T14:22:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T17:18:45+00:00\" \/>\n<meta name=\"author\" content=\"\u84ee, \u7ffc\" \/>\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=\"\u84ee, \u7ffc\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"17\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\/android%e3%81%aeconstraintlayout%e3%81%ae%e4%be%8b%e3%81%ab%e9%96%a2%e3%81%99%e3%82%8b%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/android%e3%81%aeconstraintlayout%e3%81%ae%e4%be%8b%e3%81%ab%e9%96%a2%e3%81%99%e3%82%8b%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/\",\"name\":\"Android\u306eConstraintLayout\u306e\u4f8b\u306b\u95a2\u3059\u308b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2023-07-07T14:22:54+00:00\",\"dateModified\":\"2025-07-31T17:18:45+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cdc124a0aaebf26393d8d591183ca413\"},\"description\":\"Android\u306eConstraintLayout\u306e\u4f8b\u306b\u95a2\u3059\u308b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\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\/android%e3%81%aeconstraintlayout%e3%81%ae%e4%be%8b%e3%81%ab%e9%96%a2%e3%81%99%e3%82%8b%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/android%e3%81%aeconstraintlayout%e3%81%ae%e4%be%8b%e3%81%ab%e9%96%a2%e3%81%99%e3%82%8b%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/android%e3%81%aeconstraintlayout%e3%81%ae%e4%be%8b%e3%81%ab%e9%96%a2%e3%81%99%e3%82%8b%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Android\u306eConstraintLayout\u306e\u4f8b\u306b\u95a2\u3059\u308b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\"}]},{\"@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\/cdc124a0aaebf26393d8d591183ca413\",\"name\":\"\u84ee, \u7ffc\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g\",\"caption\":\"\u84ee, \u7ffc\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/rentsubasa\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/android%e3%81%aeconstraintlayout%e3%81%ae%e4%be%8b%e3%81%ab%e9%96%a2%e3%81%99%e3%82%8b%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Android\u306eConstraintLayout\u306e\u4f8b\u306b\u95a2\u3059\u308b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - Blog - Silicon Cloud","description":"Android\u306eConstraintLayout\u306e\u4f8b\u306b\u95a2\u3059\u308b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\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\/android\u306econstraintlayout\u306e\u4f8b\u306b\u95a2\u3059\u308b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\/","og_locale":"ja_JP","og_type":"article","og_title":"Android\u306eConstraintLayout\u306e\u4f8b\u306b\u95a2\u3059\u308b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb","og_description":"Android\u306eConstraintLayout\u306e\u4f8b\u306b\u95a2\u3059\u308b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\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\/android\u306econstraintlayout\u306e\u4f8b\u306b\u95a2\u3059\u308b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-07-07T14:22:54+00:00","article_modified_time":"2025-07-31T17:18:45+00:00","author":"\u84ee, \u7ffc","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u84ee, \u7ffc","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"17\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/android%e3%81%aeconstraintlayout%e3%81%ae%e4%be%8b%e3%81%ab%e9%96%a2%e3%81%99%e3%82%8b%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/android%e3%81%aeconstraintlayout%e3%81%ae%e4%be%8b%e3%81%ab%e9%96%a2%e3%81%99%e3%82%8b%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/","name":"Android\u306eConstraintLayout\u306e\u4f8b\u306b\u95a2\u3059\u308b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2023-07-07T14:22:54+00:00","dateModified":"2025-07-31T17:18:45+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cdc124a0aaebf26393d8d591183ca413"},"description":"Android\u306eConstraintLayout\u306e\u4f8b\u306b\u95a2\u3059\u308b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\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\/android%e3%81%aeconstraintlayout%e3%81%ae%e4%be%8b%e3%81%ab%e9%96%a2%e3%81%99%e3%82%8b%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/android%e3%81%aeconstraintlayout%e3%81%ae%e4%be%8b%e3%81%ab%e9%96%a2%e3%81%99%e3%82%8b%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/android%e3%81%aeconstraintlayout%e3%81%ae%e4%be%8b%e3%81%ab%e9%96%a2%e3%81%99%e3%82%8b%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Android\u306eConstraintLayout\u306e\u4f8b\u306b\u95a2\u3059\u308b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb"}]},{"@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\/cdc124a0aaebf26393d8d591183ca413","name":"\u84ee, \u7ffc","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g","caption":"\u84ee, \u7ffc"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/rentsubasa\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/android%e3%81%aeconstraintlayout%e3%81%ae%e4%be%8b%e3%81%ab%e9%96%a2%e3%81%99%e3%82%8b%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/769","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\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=769"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/769\/revisions"}],"predecessor-version":[{"id":44792,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/769\/revisions\/44792"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=769"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=769"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=769"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}