Google 캘린더와 같은 캘린더보기를 구현하려는 경우 붕괴를 한 줄로 가로보기로 스크롤하면됩니다. 누군가 내 앱에서 Material 캘린더보기를 사용하여 알기에 좋은 라이브러리를 제안 할 수 있습니까? enter image description hereGoogle 캘린더와 같은 CalendarView
0
A
답변
0
당신은 CalendarListview
을 사용하여이 tutorial 확인할 수 있습니다. Grale에이 라이브러리를 추가해야합니다.
dependencies {
compile 'com.github.traex.calendarlistview:library:1.2.3'
}
그런 다음 레이아웃 XML 파일 내부에 DayPickerView
를 선언 :
<com.andexert.calendarlistview.library.DayPickerView
android:id="@+id/pickerView"
xmlns:calendar="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
다음, 당신은 당신의 활동이나 조각에 DatePickerController
를 구현해야합니다. getMaxYear
및 onDayOfMonthSelected
을 설정해야합니다. 첫 번째 것은 현재 시간과이 maxYear 사이의 최대 연도입니다. 두 번째 것은 사용자가 새 날짜를 선택할 때마다 호출됩니다.
@Override
public int getMaxYear()
{
return 2015;
}
@Override
public void onDayOfMonthSelected(int year, int month, int day)
{
Log.e("Day Selected", day + "/" + month + "/" + year);
}
은 또한
당신은 달력에 일정을 관리하려면
, 당신은Google Calendar
을 통합 Google Calendar API을 확인할 수 있습니다,이 post에서 기반. 이 튜토리얼은이를 통합하는 방법을 보여줍니다.
popped-up calendar view
을 통해 날짜를 선택하려는 경우 android-times-square, Android-MonthCalendarWidget ... 및 Google과 같은 타사 캘린더 라이브러리를 찾아 볼 수 있습니다.
희망이 있습니다.
이것을 확인했지만 calendarview를 스크롤 할 때보 다 단 한 줄의 가로보기로 콜 랩핑 할 때보 다 내 캘린더보기를 표시하고 싶습니다. 이 기능을 구현하기위한 모든 아이디어. –