Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <com.tyczj.extendedcalendarview.ExtendedCalendarView
- android:id="@+id/calendar"
- android:layout_width="match_parent"
- android:layout_height="416dp" >
- </com.tyczj.extendedcalendarview.ExtendedCalendarView>
- ExtendedCalendarView calendar = (ExtendedCalendarView)rootView.findViewById(R.id.calendar);
- calendar.setOnDayClickListener(new OnDayClickListener() {
- @Override
- public void onDayClicked(AdapterView<?> adapter, View view,
- int position, long id, Day day) {
- day.getDay();
- int perfectmonth = day.getMonth()+1;
- perfectdate = day.getYear() + "-" + perfectmonth + "-" + day.getDay();
- Toast.makeText(getActivity(), ""+ perfectdate , Toast.LENGTH_SHORT).show();
- accessWebService();
- }
- });
- Bundle extras = getActivity().getIntent().getExtras();
- value = extras.getString("ad");
- return rootView;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement