質問編集履歴
1
内容編集
title
CHANGED
File without changes
|
body
CHANGED
@@ -64,8 +64,8 @@
|
|
64
64
|
val first = findViewById<LinearLayout>(R.id.first)
|
65
65
|
|
66
66
|
//最初のLinearLayoutのlayout_weightの値を変更する
|
67
|
-
first.weight =
|
67
|
+
first.weight = 1 //① エラーとなる
|
68
|
-
first.layoutWeight =
|
68
|
+
first.layoutWeight = 1 //② エラーとなる
|
69
69
|
}
|
70
70
|
}
|
71
71
|
```
|