How to turn off the day of the week example: I have a calendar, I spent the day of the week by parameter in the case Monday, Thursday and Sunday to mark service. How do I disable Tuesday, Wednesday and Friday using timessquare CalendarPickerView?
I've found in some places that the init () method can disable the day but I could not get it to just take the day of the week.
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
tools:context="webservice.tablayout.teste"
android:id="@+id/layout">
public class AgendarActivity extends AppCompatActivity implements View.OnClickListener {
private Servico servico;
private SimpleDateFormat sdFormat;
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_agendar);
Calendar nextYear = Calendar.getInstance();
nextYear.add(Calendar.DAY_OF_WEEK, 1);
CalendarPickerView calendar = (CalendarPickerView) findViewById(R.id.calendarPV);
Date today = new Date();
calendar.init(today, nextYear.getTime()).withSelectedDate(today);
}