teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

内容編集

2020/09/18 05:49

投稿

tomaa
tomaa

スコア84

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 = 0.5 //① エラーとなる
67
+ first.weight = 1 //① エラーとなる
68
- first.layoutWeight = 0.5 //② エラーとなる
68
+ first.layoutWeight = 1 //② エラーとなる
69
69
  }
70
70
  }
71
71
  ```