WeekView Bib eigenkreation
This commit is contained in:
@@ -9,11 +9,11 @@
|
||||
|
||||
|
||||
|
||||
<com.alamkanak.weekview.WeekView
|
||||
<de.sebse.fuplanner.tools.ui.weekview.WeekView
|
||||
android:id="@+id/weekView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:eventTextColor="@android:color/white"
|
||||
app:eventTextColor="@color/colorFUWhite"
|
||||
app:textSize="12sp"
|
||||
app:hourHeight="60dp"
|
||||
app:headerColumnPadding="8dp"
|
||||
@@ -26,7 +26,11 @@
|
||||
app:todayBackgroundColor="#1848adff"
|
||||
app:headerColumnBackground="#ffffffff"
|
||||
app:firstDayOfWeek="monday"
|
||||
app:futureWeekendBackgroundColor="@color/colorFUPrimary"/>
|
||||
app:showFirstDayOfWeekFirst="true"
|
||||
app:futureWeekendBackgroundColor="@color/colorFUPrimary"
|
||||
app:pastWeekendBackgroundColor="@color/colorFUPrimary"
|
||||
app:maxTime="21"
|
||||
app:minTime="7"/>
|
||||
|
||||
|
||||
</FrameLayout>
|
||||
69
app/src/main/res/values/attrs.xml
Normal file
69
app/src/main/res/values/attrs.xml
Normal file
@@ -0,0 +1,69 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<declare-styleable name="WeekView">
|
||||
<attr name="allDayEventHeight" format="dimension" />
|
||||
<attr name="autoLimitTime" format="boolean" />
|
||||
<attr name="columnGap" format="dimension" />
|
||||
<attr name="dayBackgroundColor" format="color" />
|
||||
<attr name="dayNameLength" format="enum">
|
||||
<enum name="length_short" value="1" />
|
||||
<enum name="length_long" value="2" />
|
||||
</attr>
|
||||
<attr name="eventCornerRadius" format="dimension" />
|
||||
<attr name="eventMarginVertical" format="dimension" />
|
||||
<attr name="eventPadding" format="dimension" />
|
||||
<attr name="eventTextColor" format="color" />
|
||||
<attr name="eventTextSize" format="dimension" />
|
||||
<attr name="firstDayOfWeek" format="enum">
|
||||
<enum name="sunday" value="1" />
|
||||
<enum name="monday" value="2" />
|
||||
<enum name="tuesday" value="3" />
|
||||
<enum name="wednesday" value="4" />
|
||||
<enum name="thursday" value="5" />
|
||||
<enum name="friday" value="6" />
|
||||
<enum name="saturday" value="7" />
|
||||
</attr>
|
||||
<attr name="futureBackgroundColor" format="color" />
|
||||
<attr name="futureWeekendBackgroundColor" format="color" />
|
||||
<attr name="headerColumnBackground" format="color" />
|
||||
<attr name="headerColumnPadding" format="dimension" />
|
||||
<attr name="headerColumnTextColor" format="color" />
|
||||
<attr name="headerRowBackgroundColor" format="color" />
|
||||
<attr name="headerRowPadding" format="dimension" />
|
||||
<attr name="horizontalFlingEnabled" format="boolean" />
|
||||
<attr name="hourHeight" format="dimension" />
|
||||
<attr name="hourSeparatorColor" format="color" />
|
||||
<attr name="hourSeparatorHeight" format="dimension" />
|
||||
<attr name="maxHourHeight" format="dimension" />
|
||||
<attr name="maxTime" format="integer" />
|
||||
<attr name="minHourHeight" format="dimension" />
|
||||
<attr name="minTime" format="integer" />
|
||||
<attr name="minOverlappingMinutes" format="integer" />
|
||||
<attr name="newEventColor" format="color" />
|
||||
<attr name="newEventId" format="integer" />
|
||||
<attr name="newEventIdentifier" format="string" />
|
||||
<attr name="newEventIconResource" format="integer" />
|
||||
<attr name="newEventLengthInMinutes" format="integer" />
|
||||
<attr name="newEventTimeResolutionInMinutes" format="integer" />
|
||||
<attr name="noOfVisibleDays" format="integer" />
|
||||
<attr name="nowLineColor" format="color" />
|
||||
<attr name="nowLineThickness" format="dimension" />
|
||||
<attr name="overlappingEventGap" format="dimension" />
|
||||
<attr name="pastBackgroundColor" format="color" />
|
||||
<attr name="pastWeekendBackgroundColor" format="color" />
|
||||
<attr name="scrollDuration" format="integer" />
|
||||
<attr name="showDistinctPastFutureColor" format="boolean" />
|
||||
<attr name="showDistinctWeekendColor" format="boolean" />
|
||||
<attr name="showFirstDayOfWeekFirst" format="boolean" />
|
||||
<attr name="showNowLine" format="boolean" />
|
||||
<attr name="textSize" format="dimension" />
|
||||
<attr name="timeColumnResolution" format="integer" />
|
||||
<attr name="todayBackgroundColor" format="color" />
|
||||
<attr name="todayHeaderTextColor" format="color" />
|
||||
<attr name="verticalFlingEnabled" format="boolean" />
|
||||
<attr name="xScrollingSpeed" format="float" />
|
||||
<attr name="zoomFocusPoint" format="fraction" />
|
||||
<attr name="zoomFocusPointEnabled" format="boolean" />
|
||||
<attr name="dropListenerEnabled" format="boolean" />
|
||||
</declare-styleable>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user