2021-11-07 19:42:59 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
|
|
|
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
|
|
x:Class="TINK.View.MyBikes.MyBikesPage"
|
|
|
|
xmlns:resources="clr-namespace:TINK.MultilingualResources;assembly=TINKLib"
|
|
|
|
xmlns:local_bike="clr-namespace:TINK.View.Bike"
|
|
|
|
Title="{x:Static resources:AppResources.MarkingMyBikes}">
|
|
|
|
<ContentPage.Resources>
|
|
|
|
<ResourceDictionary>
|
|
|
|
<local_bike:BikeViewCellTemplateSelector x:Key="bikeTemplateSelector"/>
|
|
|
|
</ResourceDictionary>
|
2022-01-04 18:48:58 +01:00
|
|
|
</ContentPage.Resources>
|
2021-11-07 19:42:59 +01:00
|
|
|
<ContentPage.Content>
|
|
|
|
<Frame>
|
2022-01-04 18:48:58 +01:00
|
|
|
<StackLayout>
|
|
|
|
<ListView
|
|
|
|
x:Name="MyBikesListView"
|
|
|
|
SelectionMode="None"
|
|
|
|
SelectedItem="{Binding SelectedBike}"
|
|
|
|
IsEnabled="{Binding IsIdle}"
|
|
|
|
IsVisible="{Binding IsBikesListVisible}"
|
|
|
|
HasUnevenRows="True"
|
|
|
|
ItemTemplate="{StaticResource bikeTemplateSelector}"/>
|
|
|
|
<StackLayout
|
|
|
|
VerticalOptions="EndAndExpand"
|
|
|
|
Orientation="Horizontal">
|
2021-11-07 19:42:59 +01:00
|
|
|
<Label
|
|
|
|
IsVisible="{Binding IsNoBikesOccupiedVisible}"
|
2022-01-04 18:48:58 +01:00
|
|
|
VerticalOptions="StartAndExpand"
|
2021-11-07 19:42:59 +01:00
|
|
|
Text="{Binding NoBikesOccupiedText}"/>
|
|
|
|
<Label
|
|
|
|
HeightRequest="20"
|
|
|
|
Text="{Binding StatusInfoText}"
|
|
|
|
VerticalOptions="Center"
|
|
|
|
HorizontalOptions="FillAndExpand"/>
|
|
|
|
<ActivityIndicator IsRunning="{Binding IsRunning}"
|
2022-01-04 18:48:58 +01:00
|
|
|
IsVisible="{Binding IsRunning}"
|
|
|
|
HeightRequest="20"
|
|
|
|
VerticalOptions="CenterAndExpand"
|
|
|
|
HorizontalOptions="End">
|
2021-11-07 19:42:59 +01:00
|
|
|
<ActivityIndicator.WidthRequest>
|
|
|
|
<OnPlatform x:TypeArguments="x:Double" iOS="40" Android="40" WinPhone="40" />
|
|
|
|
</ActivityIndicator.WidthRequest>
|
|
|
|
<ActivityIndicator.Color>
|
|
|
|
<OnPlatform x:TypeArguments="Color"
|
2022-01-04 18:48:58 +01:00
|
|
|
iOS="#2499CE" WinPhone="#2499CE" />
|
2021-11-07 19:42:59 +01:00
|
|
|
</ActivityIndicator.Color>
|
|
|
|
</ActivityIndicator>
|
|
|
|
</StackLayout>
|
|
|
|
</StackLayout>
|
|
|
|
</Frame>
|
|
|
|
</ContentPage.Content>
|
|
|
|
</ContentPage>
|