We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/Layout:
<com.andexert.calendarlistview.library.DayPickerView android:id="@+id/pickerView" android:layout_width="match_parent" android:layout_height="match_parent" calendar:drawRoundRect="true" />
Activity Class:
package com.example.enny.agendando.ui.activities;
import android.app.Activity; import android.os.Bundle; import android.util.Log;
import com.andexert.calendarlistview.library.DayPickerView; import com.andexert.calendarlistview.library.SimpleMonthAdapter; import com.example.enny.agendando.R;
public class SelectDateActivity extends Activity implements com.andexert.calendarlistview.library.DatePickerController {
private DayPickerView dayPickerView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_select_date); dayPickerView = (DayPickerView) findViewById(R.id.pickerView); dayPickerView.setController(this); } @Override public int getMaxYear() { return 2015; } @Override public void onDayOfMonthSelected(int year, int month, int day) { Log.e("Day Selected", day + " / " + month + " / " + year); } @Override public void onDateRangeSelected(SimpleMonthAdapter.SelectedDays<SimpleMonthAdapter.CalendarDay> selectedDays) { Log.e("Date range selected", selectedDays.getFirst().toString() + " --> " + selectedDays.getLast().toString()); }
}
The text was updated successfully, but these errors were encountered:
Try setting 2016 in getMaxYear() method. It should work
Sorry, something went wrong.
RiccardoFabozzi 's method are correctly
Modify the following location code:SimpleMonthAdapter > getItemCount > return Math.abs(itemCount);
No branches or pull requests
/Layout:
Activity Class:
package com.example.enny.agendando.ui.activities;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import com.andexert.calendarlistview.library.DayPickerView;
import com.andexert.calendarlistview.library.SimpleMonthAdapter;
import com.example.enny.agendando.R;
public class SelectDateActivity extends Activity implements com.andexert.calendarlistview.library.DatePickerController {
}
The text was updated successfully, but these errors were encountered: