13e9818e0267619fecebd55095ab26c53eff92e93James Kung/*
23e9818e0267619fecebd55095ab26c53eff92e93James Kung * Copyright (C) 2013 The Android Open Source Project
33e9818e0267619fecebd55095ab26c53eff92e93James Kung *
43e9818e0267619fecebd55095ab26c53eff92e93James Kung * Licensed under the Apache License, Version 2.0 (the "License");
53e9818e0267619fecebd55095ab26c53eff92e93James Kung * you may not use this file except in compliance with the License.
63e9818e0267619fecebd55095ab26c53eff92e93James Kung * You may obtain a copy of the License at
73e9818e0267619fecebd55095ab26c53eff92e93James Kung *
83e9818e0267619fecebd55095ab26c53eff92e93James Kung *      http://www.apache.org/licenses/LICENSE-2.0
93e9818e0267619fecebd55095ab26c53eff92e93James Kung *
103e9818e0267619fecebd55095ab26c53eff92e93James Kung * Unless required by applicable law or agreed to in writing, software
113e9818e0267619fecebd55095ab26c53eff92e93James Kung * distributed under the License is distributed on an "AS IS" BASIS,
123e9818e0267619fecebd55095ab26c53eff92e93James Kung * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
133e9818e0267619fecebd55095ab26c53eff92e93James Kung * See the License for the specific language governing permissions and
143e9818e0267619fecebd55095ab26c53eff92e93James Kung * limitations under the License.
153e9818e0267619fecebd55095ab26c53eff92e93James Kung */
163e9818e0267619fecebd55095ab26c53eff92e93James Kung
173e9818e0267619fecebd55095ab26c53eff92e93James Kungpackage com.android.datetimepicker.date;
183e9818e0267619fecebd55095ab26c53eff92e93James Kung
193e9818e0267619fecebd55095ab26c53eff92e93James Kungimport android.content.Context;
203e9818e0267619fecebd55095ab26c53eff92e93James Kung
213e9818e0267619fecebd55095ab26c53eff92e93James Kung/**
223e9818e0267619fecebd55095ab26c53eff92e93James Kung * An adapter for a list of {@link SimpleMonthView} items.
233e9818e0267619fecebd55095ab26c53eff92e93James Kung */
24e668d6b1b77ac4b127f961150e0d0a8a088143d9James Kungpublic class SimpleMonthAdapter extends MonthAdapter {
253e9818e0267619fecebd55095ab26c53eff92e93James Kung
26e668d6b1b77ac4b127f961150e0d0a8a088143d9James Kung    public SimpleMonthAdapter(Context context, DatePickerController controller) {
27e668d6b1b77ac4b127f961150e0d0a8a088143d9James Kung        super(context, controller);
28a35f6b580aefd7bf1c7e92306e13dacd44316714Alan Viverette    }
29a35f6b580aefd7bf1c7e92306e13dacd44316714Alan Viverette
303e9818e0267619fecebd55095ab26c53eff92e93James Kung    @Override
31e668d6b1b77ac4b127f961150e0d0a8a088143d9James Kung    public MonthView createMonthView(Context context) {
32fc0e80c929547bba62f93d609c83fe6d6bfbfd34Ruben        final MonthView monthView = new SimpleMonthView(context);
33fc0e80c929547bba62f93d609c83fe6d6bfbfd34Ruben        monthView.setDatePickerController(mController);
34fc0e80c929547bba62f93d609c83fe6d6bfbfd34Ruben        return monthView;
353e9818e0267619fecebd55095ab26c53eff92e93James Kung    }
363e9818e0267619fecebd55095ab26c53eff92e93James Kung}
37