Layout fixes and Push fixes
- Layout und Kalender angepasst - Push status meldung angepasst für Android
This commit is contained in:
+34
-10
@@ -47,7 +47,7 @@
|
||||
SelectionMode="None"
|
||||
VerticalOptions="Fill"
|
||||
HorizontalOptions="Fill"
|
||||
ItemSizingStrategy="MeasureFirstItem">
|
||||
ItemSizingStrategy="MeasureAllItems">
|
||||
<CollectionView.ItemTemplate>
|
||||
<DataTemplate x:DataType="viewModels:MonthSectionViewModel">
|
||||
<Border Padding="12"
|
||||
@@ -61,12 +61,25 @@
|
||||
FontAttributes="Bold"
|
||||
TextColor="{DynamicResource TextPrimary}" />
|
||||
|
||||
<FlexLayout Direction="Row"
|
||||
Wrap="Wrap"
|
||||
AlignItems="Start"
|
||||
JustifyContent="Start"
|
||||
BindableLayout.ItemsSource="{Binding Cells}">
|
||||
<BindableLayout.ItemTemplate>
|
||||
<Grid ColumnDefinitions="*,*,*,*,*,*,*"
|
||||
ColumnSpacing="4">
|
||||
<Label Text="Mo" HorizontalTextAlignment="Center" FontSize="11" TextColor="{DynamicResource TextMuted}" />
|
||||
<Label Grid.Column="1" Text="Di" HorizontalTextAlignment="Center" FontSize="11" TextColor="{DynamicResource TextMuted}" />
|
||||
<Label Grid.Column="2" Text="Mi" HorizontalTextAlignment="Center" FontSize="11" TextColor="{DynamicResource TextMuted}" />
|
||||
<Label Grid.Column="3" Text="Do" HorizontalTextAlignment="Center" FontSize="11" TextColor="{DynamicResource TextMuted}" />
|
||||
<Label Grid.Column="4" Text="Fr" HorizontalTextAlignment="Center" FontSize="11" TextColor="{DynamicResource TextMuted}" />
|
||||
<Label Grid.Column="5" Text="Sa" HorizontalTextAlignment="Center" FontSize="11" TextColor="{DynamicResource TextMuted}" />
|
||||
<Label Grid.Column="6" Text="So" HorizontalTextAlignment="Center" FontSize="11" TextColor="{DynamicResource TextMuted}" />
|
||||
</Grid>
|
||||
|
||||
<CollectionView ItemsSource="{Binding Cells}"
|
||||
SelectionMode="None"
|
||||
ItemSizingStrategy="MeasureFirstItem">
|
||||
<CollectionView.ItemsLayout>
|
||||
<GridItemsLayout Orientation="Vertical"
|
||||
Span="7" />
|
||||
</CollectionView.ItemsLayout>
|
||||
<CollectionView.ItemTemplate>
|
||||
<DataTemplate x:DataType="viewModels:MonthCellViewModel">
|
||||
<Border Margin="2"
|
||||
Padding="4"
|
||||
@@ -75,6 +88,15 @@
|
||||
Stroke="{Binding BorderColor}"
|
||||
BackgroundColor="{DynamicResource SurfaceBackgroundAlt}"
|
||||
StrokeShape="RoundRectangle 8">
|
||||
<Border.Triggers>
|
||||
<DataTrigger TargetType="Border"
|
||||
Binding="{Binding IsPlaceholder}"
|
||||
Value="True">
|
||||
<Setter Property="BackgroundColor" Value="Transparent" />
|
||||
<Setter Property="StrokeThickness" Value="0" />
|
||||
</DataTrigger>
|
||||
</Border.Triggers>
|
||||
|
||||
<Border.GestureRecognizers>
|
||||
<TapGestureRecognizer
|
||||
Command="{Binding Source={RelativeSource AncestorType={x:Type viewModels:YearViewModel}}, Path=OpenDayCommand, x:DataType='viewModels:YearViewModel'}"
|
||||
@@ -83,12 +105,14 @@
|
||||
|
||||
<Grid RowDefinitions="Auto,*">
|
||||
<Label Text="{Binding DayNumberText}"
|
||||
IsVisible="{Binding ShowDayNumber}"
|
||||
FontSize="11"
|
||||
FontAttributes="Bold"
|
||||
HorizontalTextAlignment="Center"
|
||||
TextColor="{Binding TextColor}" />
|
||||
|
||||
<Border Grid.Row="1"
|
||||
IsVisible="{Binding ShowAverage}"
|
||||
Margin="0,4,0,0"
|
||||
Padding="2"
|
||||
StrokeThickness="0"
|
||||
@@ -104,12 +128,12 @@
|
||||
</Grid>
|
||||
</Border>
|
||||
</DataTemplate>
|
||||
</BindableLayout.ItemTemplate>
|
||||
</FlexLayout>
|
||||
</CollectionView.ItemTemplate>
|
||||
</CollectionView>
|
||||
</VerticalStackLayout>
|
||||
</Border>
|
||||
</DataTemplate>
|
||||
</CollectionView.ItemTemplate>
|
||||
</CollectionView>
|
||||
</Grid>
|
||||
</ContentPage>
|
||||
</ContentPage>
|
||||
|
||||
Reference in New Issue
Block a user