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

回答編集履歴

2

要素の追加について

2019/09/06 06:39

投稿

unhappychoice
unhappychoice

スコア1531

answer CHANGED
@@ -7,9 +7,11 @@
7
7
  //....
8
8
 
9
9
  mPopupWindowList = new ArrayList<PopupWindow>();
10
+ mPopupWindowList.add(new PopupWindow(MainActivity.this));
11
+ mPopupWindowList.add(new PopupWindow(MainActivity.this)); // 必要個数入れる
10
12
 
11
13
  //...
12
- for(PopupWindow mPopupWindow: mPopupWindowlist) { // List から取り出し
14
+ for(PopupWindow mPopupWindow: mPopupWindowlist) { // List から取り出して繰り返し
13
15
  // レイアウトの設定
14
16
  }
15
17
  ```

1

修正

2019/09/06 06:39

投稿

unhappychoice
unhappychoice

スコア1531

answer CHANGED
@@ -9,7 +9,7 @@
9
9
  mPopupWindowList = new ArrayList<PopupWindow>();
10
10
 
11
11
  //...
12
- for(PopupWindow mPopupWindow: mPopupWindowlist) { // List から
12
+ for(PopupWindow mPopupWindow: mPopupWindowlist) { // List から取り出し
13
13
  // レイアウトの設定
14
14
  }
15
15
  ```