Weekview design geändert
This commit is contained in:
@@ -44,9 +44,9 @@ public class MealFragment extends Fragment {
|
||||
* Use this factory method to create a new instance of
|
||||
* this fragment using the provided parameters.
|
||||
*
|
||||
* @param canteenId Item position in module list.
|
||||
* @param dayPosition Item position in module list.
|
||||
* @return A new instance of fragment ModDetailAnnounceFragment.
|
||||
* @param canteenId ID der Kantine.
|
||||
* @param dayPosition anzuzeigender Tag.
|
||||
* @return A new instance of fragment MealFragment.
|
||||
*/
|
||||
public static MealFragment newInstance(int canteenId, int dayPosition) {
|
||||
MealFragment fragment = new MealFragment();
|
||||
|
||||
@@ -47,6 +47,7 @@ import java.util.Locale;
|
||||
import de.sebse.fuplanner.R;
|
||||
import de.sebse.fuplanner.tools.ColorRes;
|
||||
import de.sebse.fuplanner.tools.UtilsDate;
|
||||
import de.sebse.fuplanner.tools.UtilsUi;
|
||||
import de.sebse.fuplanner.tools.logging.Logger;
|
||||
|
||||
import static de.sebse.fuplanner.tools.ui.weekview.WeekViewUtil.daysBetween;
|
||||
@@ -61,7 +62,7 @@ import static de.sebse.fuplanner.tools.ui.weekview.WeekViewUtil.today;
|
||||
*/
|
||||
@SuppressWarnings("unused")
|
||||
public class WeekView extends View {
|
||||
|
||||
///////////////////////////////////////////Änderung in zeile 991 überprüfen!!!!!!!!!!!!!!!!!!!!!
|
||||
private enum Direction {
|
||||
NONE, LEFT, RIGHT, VERTICAL
|
||||
}
|
||||
@@ -987,7 +988,7 @@ public class WeekView extends View {
|
||||
String dayLabel = getDateTimeInterpreter().interpretDate(day);
|
||||
if (dayLabel == null)
|
||||
throw new IllegalStateException("A DateTimeInterpreter must not return null date");
|
||||
canvas.drawText(dayLabel, startPixel + mWidthPerDay / 2, mHeaderTextHeight + mHeaderRowPadding, isToday ? mTodayHeaderTextPaint : mHeaderTextPaint);
|
||||
canvas.drawText(dayLabel, startPixel + mWidthPerDay / 2, mHeaderTextHeight + mHeaderRowPadding+ UtilsUi.convertPixelsToDp(40, mContext), isToday ? mTodayHeaderTextPaint : mHeaderTextPaint);
|
||||
drawAllDayEvents(day, startPixel, canvas);
|
||||
startPixel += mWidthPerDay + mColumnGap;
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
app:headerRowPadding="12dp"
|
||||
app:columnGap="8dp"
|
||||
app:noOfVisibleDays="5"
|
||||
app:headerRowBackgroundColor="#ffefefef"
|
||||
app:headerRowBackgroundColor="@color/colorFUGray"
|
||||
app:firstDayOfWeek="monday"
|
||||
app:showFirstDayOfWeekFirst="true"
|
||||
app:futureWeekendBackgroundColor="@color/colorFURedLight"
|
||||
@@ -31,6 +31,7 @@
|
||||
app:hourSeparatorColor="@android:color/black"
|
||||
app:showNowLine="true"
|
||||
app:defaultEventColor="@color/colorFUBlue"
|
||||
app:headerColumnBackground="@color/colorFUGray"
|
||||
/>
|
||||
|
||||
|
||||
|
||||
@@ -54,4 +54,5 @@
|
||||
<string name="soups">Suppen</string>
|
||||
<string name="starters">Vorspeisen</string>
|
||||
<string name="others">Sonstiges</string>
|
||||
<string name="resourcen">Ressourcen</string>
|
||||
</resources>
|
||||
@@ -61,4 +61,5 @@
|
||||
<string name="soups">Soups</string>
|
||||
<string name="starters">Starters</string>
|
||||
<string name="others">Others</string>
|
||||
<string name="resourcen">Resourcen</string>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user