Kalender Farben geändert

This commit is contained in:
Joshua
2018-07-12 18:03:15 +02:00
parent 3448551ad1
commit a40b7d7d52
2 changed files with 11 additions and 7 deletions

View File

@@ -144,7 +144,7 @@ public class ScheduleFragment extends Fragment implements WeekView.EventClickLis
Calendar start = Calendar.getInstance();
start.setTimeInMillis(e.getStartDate());
events.add(new WeekViewEvent(1, e.getTitle(), start.get(Calendar.YEAR), start.get(Calendar.MONTH) + 1, start.get(Calendar.DAY_OF_MONTH), start.get(Calendar.HOUR_OF_DAY), start.get(Calendar.MINUTE), ende.get(Calendar.YEAR), ende.get(Calendar.MONTH) + 1, ende.get(Calendar.DAY_OF_MONTH), ende.get(Calendar.HOUR_OF_DAY), ende.get(Calendar.MINUTE)));
events.add(new WeekViewEvent(e.getId(), e.getTitle(), start.get(Calendar.YEAR), start.get(Calendar.MONTH) + 1, start.get(Calendar.DAY_OF_MONTH), start.get(Calendar.HOUR_OF_DAY), start.get(Calendar.MINUTE), ende.get(Calendar.YEAR), ende.get(Calendar.MONTH) + 1, ende.get(Calendar.DAY_OF_MONTH), ende.get(Calendar.HOUR_OF_DAY), ende.get(Calendar.MINUTE)));
}
}
}

View File

@@ -22,15 +22,19 @@
app:columnGap="8dp"
app:noOfVisibleDays="5"
app:headerRowBackgroundColor="#ffefefef"
app:dayBackgroundColor="#05000000"
app:todayBackgroundColor="#1848adff"
app:headerColumnBackground="#ffffffff"
app:dayBackgroundColor="@color/colorFUPrimary"
app:todayBackgroundColor="@color/colorFUPrimary"
app:headerColumnBackground="@color/colorFUPrimary"
app:firstDayOfWeek="monday"
app:showFirstDayOfWeekFirst="true"
app:futureWeekendBackgroundColor="@color/colorFUPrimary"
app:pastWeekendBackgroundColor="@color/colorFUPrimary"
app:futureWeekendBackgroundColor="@color/colorFURedLight"
app:pastWeekendBackgroundColor="@color/colorFURedLight"
app:maxTime="21"
app:minTime="7"/>
app:minTime="7"
app:showDistinctPastFutureColor="true"
app:showDistinctWeekendColor="true"
app:hourSeparatorColor="@android:color/black"
app:showNowLine="true"/>
</FrameLayout>