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

回答編集履歴

1

スクロールバー出したくなかったので改行入れる

2019/01/28 13:20

投稿

keicha_hrs
keicha_hrs

スコア6768

answer CHANGED
@@ -20,7 +20,8 @@
20
20
  final LinearLayout parent = findViewById(R.id.food_lay);
21
21
  final LayoutInflater inflater = LayoutInflater.from(this);
22
22
 
23
+ final LinearLayout subLayout0 =
23
- final LinearLayout subLayout0 = (LinearLayout) inflater.inflate(R.layout.sub0, null);
24
+ (LinearLayout) inflater.inflate(R.layout.sub0, null);
24
25
  parent.addView(subLayout0);
25
26
 
26
27
  final LinearLayout sub0 = findViewById(R.id.sub0);