{"id":1835,"date":"2018-03-08T15:51:19","date_gmt":"2018-03-08T06:51:19","guid":{"rendered":"http:\/\/kuuur.net\/?p=1835"},"modified":"2018-03-08T15:51:46","modified_gmt":"2018-03-08T06:51:46","slug":"scrolllayout","status":"publish","type":"post","link":"https:\/\/kuuur.net\/?p=1835","title":{"rendered":"Android\u30a2\u30d7\u30ea\uff1a\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u9014\u4e2d\u306b\u30b9\u30af\u30ed\u30fc\u30eb\u3092\u5165\u308c\u308b"},"content":{"rendered":"<p>Android\u30a2\u30d7\u30ea\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u7d44\u3080\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1836\" src=\"https:\/\/kuuur.net\/wp-content\/uploads\/2018\/03\/scrolllayout.jpg\" alt=\"\" width=\"281\" height=\"441\" srcset=\"https:\/\/kuuur.net\/wp-content\/uploads\/2018\/03\/scrolllayout.jpg 281w, https:\/\/kuuur.net\/wp-content\/uploads\/2018\/03\/scrolllayout-191x300.jpg 191w\" sizes=\"auto, (max-width: 281px) 100vw, 281px\" \/><\/p>\n<h2>weightSum\u3092\u4f7f\u3046<\/h2>\n<p>\u4e0a\u3001\u4e2d\u592e\u3001\u4e0b\u306e\u30d1\u30fc\u30c4\u306b\u5206\u3051\u3066\u3001\u4e0a\u4e0b\u306e\u30d1\u30fc\u30c4\u306f\u56fa\u5b9a\u3001\u4e2d\u592e\u306e\u30d1\u30fc\u30c4\u306f\u30b9\u30af\u30ed\u30fc\u30eb\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002<br \/>\n\u6700\u521d\u306bLinearLayout\u3092vertical\u3067\u5927\u5916\u306e\u67a0\u3092\u3064\u304f\u308a\u307e\u3059\u3002<br \/>\n\u305d\u308c\u304b\u3089\u4e0a\u6bb5\u3068\u4e0b\u6bb5\u306fLinearLayout\u3001\u4e2d\u592e\u306fScrollView\u306b\u3057\u307e\u3059\u3002<br \/>\n\u3053\u308c\u3089\u3092\u6bd4\u7387\u3067\u5206\u5272\u3059\u308b\u306b\u306f\u3001\u89aa\u8981\u7d20\u306eLinearLayout\u306b<br \/>\nandroid:weightSum=&#8221;1&#8243;\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u3053\u308c\u306b\u3088\u308a\u3001\u5168\u4f53\u30671\u306b\u306a\u308b\u3088\u3046\u306b\u6bd4\u7387\u3092\u7d44\u3080\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u3053\u3053\u3067\u306f\u3001\u6700\u521d\u306eLinearLayout\u306fandoroid:layout_weight=&#8221;0.2&#8243;<br \/>\n\u4e2d\u592e\u306eScrollView\u306fandroid:layout_weight=&#8221;0.7\u3001<br \/>\n\u6700\u5f8c\u306eLinearLayout\u306fandroid:layout_weight=&#8221;0.1&#8243;<br \/>\n\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3066\u3042\u308a\u307e\u3059\u3002<\/p>\n<div class=\"source source2\">\n<pre>&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;<\/pre>\n<pre>&lt;LinearLayout xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\"\r\n    xmlns:tools=\"http:\/\/schemas.android.com\/tools\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"match_parent\"\r\n    android:orientation=\"vertical\"\r\n    tools:context=\".MainActivity\"&gt;<\/pre>\n<pre>&lt;LinearLayout\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"wrap_content\"\r\n    android:orientation=\"vertical\"\r\n    android:weightSum=\"1\"\r\n    &gt;<\/pre>\n<pre>&lt;LinearLayout\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"0dp\"\r\n    android:orientation=\"horizontal\"\r\n    android:weightSum=\"1\"\r\n    android:layout_weight=\"0.2\"\r\n    &gt;<\/pre>\n<pre>&lt;\/LinearLayout&gt;<\/pre>\n<pre>&lt;ScrollView\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"0dp\"\r\n    android:layout_weight=\"0.7\"\r\n    &gt;\r\n    &lt;LinearLayout\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:orientation=\"vertical\"\r\n        android:weightSum=\"1\"\r\n        &gt;\r\n\r\n    &lt;Button\r\n        android:id=\"@+id\/q1\"\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:text=\"------\"\r\n        android:textSize=\"30sp\"\r\n        android:layout_marginLeft=\"10dp\"\r\n        android:layout_marginRight=\"10dp\"\r\n        \/&gt;\r\n\r\n    &lt;Button\r\n        android:id=\"@+id\/q2\"\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:text=\"------\"\r\n        android:textSize=\"30sp\"\r\n        android:layout_marginLeft=\"10dp\"\r\n        android:layout_marginRight=\"10dp\"\r\n        \/&gt;<\/pre>\n<pre>    &lt;\/LinearLayout&gt;\r\n\r\n&lt;\/ScrollView&gt;<\/pre>\n<pre>&lt;LinearLayout\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"0dp\"\r\n        android:orientation=\"horizontal\"\r\n        android:layout_weight=\"0.1\"\r\n        android:weightSum=\"1\"\r\n        android:gravity=\"right\"\r\n        &gt;\r\n\r\n        &lt;Button\r\n            android:id=\"@+id\/help\"\r\n            android:layout_width=\"wrap_content\"\r\n            android:layout_height=\"50dp\"\r\n            android:layout_weight=\"0.2\"\r\n            android:layout_marginRight=\"10dp\"\r\n            android:text=\"help\"\r\n            \/&gt;\r\n\r\n&lt;\/LinearLayout&gt;\r\n&lt;\/LinearLayout&gt;\r\n&lt;\/LinearLayout&gt;<\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Android\u30a2\u30d7\u30ea\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u7d44\u3080\u65b9\u6cd5\u3067\u3059\u3002 weightSum\u3092\u4f7f\u3046 \u4e0a\u3001\u4e2d\u592e\u3001\u4e0b\u306e\u30d1\u30fc\u30c4\u306b\u5206\u3051\u3066\u3001\u4e0a\u4e0b\u306e\u30d1\u30fc\u30c4\u306f\u56fa\u5b9a\u3001\u4e2d\u592e\u306e\u30d1\u30fc\u30c4\u306f\u30b9\u30af\u30ed\u30fc\u30eb\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002 \u6700\u521d\u306bLinearLa&#8230;<span class=\"continue\"><a href=\"https:\/\/kuuur.net\/?p=1835\">\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[],"class_list":["post-1835","post","type-post","status-publish","format-standard","hentry","category-android"],"views":11182,"_links":{"self":[{"href":"https:\/\/kuuur.net\/index.php?rest_route=\/wp\/v2\/posts\/1835","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kuuur.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kuuur.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kuuur.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kuuur.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1835"}],"version-history":[{"count":5,"href":"https:\/\/kuuur.net\/index.php?rest_route=\/wp\/v2\/posts\/1835\/revisions"}],"predecessor-version":[{"id":1841,"href":"https:\/\/kuuur.net\/index.php?rest_route=\/wp\/v2\/posts\/1835\/revisions\/1841"}],"wp:attachment":[{"href":"https:\/\/kuuur.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1835"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kuuur.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1835"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kuuur.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1835"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}