質問編集履歴

3

CalendarAdapterクラスを全て記載しました。

2018/07/08 00:31

投稿

dabodaboda29
dabodaboda29

スコア6

test CHANGED
File without changes
test CHANGED
@@ -184,10 +184,6 @@
184
184
 
185
185
 
186
186
 
187
- //private TextView w1,w2,w3,w4,w5;
188
-
189
-
190
-
191
187
  //カスタムセルを拡張したらここでWidgetを定義
192
188
 
193
189
  private static class ViewHolder{

2

CalendarAdapterクラスを全て記載しました。

2018/07/08 00:31

投稿

dabodaboda29
dabodaboda29

スコア6

test CHANGED
File without changes
test CHANGED
@@ -168,6 +168,34 @@
168
168
 
169
169
  ```
170
170
 
171
+
172
+
173
+ public class CalendarAdapter extends BaseAdapter {
174
+
175
+ private List<Date> dateArray = new ArrayList();
176
+
177
+ private Context mContext;
178
+
179
+ private DateManager mDateManager;
180
+
181
+ private LayoutInflater mLayoutInflater;
182
+
183
+ private Map<Integer, View> positionView;
184
+
185
+
186
+
187
+ //private TextView w1,w2,w3,w4,w5;
188
+
189
+
190
+
191
+ //カスタムセルを拡張したらここでWidgetを定義
192
+
193
+ private static class ViewHolder{
194
+
195
+ public TextView dateText,tx_shift;
196
+
197
+ }
198
+
171
199
  public CalendarAdapter(Context context){
172
200
 
173
201
  mContext = context;

1

試したことについて思い出したので少し追記しました。

2018/07/08 00:27

投稿

dabodaboda29
dabodaboda29

スコア6

test CHANGED
File without changes
test CHANGED
@@ -262,7 +262,7 @@
262
262
 
263
263
  ### 試したこと
264
264
 
265
-
265
+ gridViewからgetChildAtで取れないかと試しましたが、これもnullが帰ってくる。
266
266
 
267
267
  viewが取れないのであればと、calenderAdapterのgetView内でプレファレンスを調べて、データがあればtx_shiftに代入、と思いましたがgetSharedPrefarencesが使えず…。
268
268