-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the side menu and settings page
Added the settings page. Added the settings icon and side menu.
- Loading branch information
Showing
7 changed files
with
345 additions
and
72 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion
3
src/GWallet.Frontend.XF.Android/Resources/Resource.designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,84 +1,144 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<FlyoutPage xmlns="http://xamarin.com/schemas/2014/forms" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:local="clr-namespace:GWallet.Frontend.XF" | ||
xmlns:ios="clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core" | ||
ios:FlyoutPage.ApplyShadow="True" | ||
xmlns:controls="clr-namespace:GWallet.Frontend.XF.Controls" | ||
x:Class="GWallet.Frontend.XF.BalancesPage"> | ||
<StackLayout x:Name="mainLayout" | ||
Padding="0,0,0,0" | ||
VerticalOptions="FillAndExpand"> | ||
|
||
<StackLayout Orientation="Horizontal" | ||
Padding="15, 10" | ||
Spacing="30" | ||
VerticalOptions="FillAndExpand" | ||
HorizontalOptions="FillAndExpand"> | ||
<!-- Side menu--> | ||
<FlyoutPage.Flyout> | ||
<ContentPage Title="FlyoutMenu" | ||
ios:Page.UseSafeArea="True" > | ||
<StackLayout Spacing="20" Margin="10,10,15,0"> | ||
|
||
<!-- we add {V|H}Options=Center* not only to the Label, as a workaround to | ||
https://github.com/xamarin/Xamarin.Forms/issues/4655 --> | ||
<Frame x:Name="totalFiatAmountFrame" | ||
HasShadow="false" | ||
BackgroundColor="Transparent" | ||
BorderColor="Transparent" | ||
VerticalOptions="CenterAndExpand" | ||
HorizontalOptions="End" | ||
Padding="0" | ||
Margin="0,0,0,0"> | ||
<StackLayout x:Name="totalFiatAmountLayout" | ||
Orientation="Horizontal" | ||
VerticalOptions="CenterAndExpand" | ||
HorizontalOptions="Center" | ||
Margin="0,0,0,0"> | ||
<Label Text="..." x:Name="totalFiatAmountLabel" | ||
VerticalOptions="CenterAndExpand" | ||
HorizontalOptions="Center" | ||
Margin="0,0,0,0" | ||
FontSize="22" /> | ||
<Image HeightRequest="80" | ||
WidthRequest="80" | ||
Margin="0,0,0,10" | ||
x:Name="logoInSidemenu"/> | ||
|
||
<StackLayout Spacing="15" Orientation="Horizontal"> | ||
<Label VerticalOptions="Center" FontFamily="Icons" Text="#"/> | ||
<Label Text="Check you still remember your payment password"/> | ||
<StackLayout.GestureRecognizers> | ||
<TapGestureRecognizer CommandParameter="Check you still remember your payment password" Tapped="OpenSettings_Tapped"/> | ||
</StackLayout.GestureRecognizers> | ||
</StackLayout> | ||
|
||
<StackLayout Spacing="15" Orientation="Horizontal"> | ||
<Label VerticalOptions="Center" FontFamily="Icons" Text="#"/> | ||
<Label Text="Check you still remember your secret recovery phrase"/> | ||
<StackLayout.GestureRecognizers> | ||
<TapGestureRecognizer CommandParameter="Check you still remember your secret recovery phrase" Tapped="OpenSettings_Tapped"/> | ||
</StackLayout.GestureRecognizers> | ||
</StackLayout> | ||
</Frame> | ||
|
||
<!-- keep this frame&stacklayout&label below almost same as previous! --> | ||
<Frame x:Name="totalReadOnlyFiatAmountFrame" | ||
HasShadow="false" | ||
IsVisible="false" | ||
BackgroundColor="Transparent" | ||
BorderColor="Transparent" | ||
VerticalOptions="CenterAndExpand" | ||
HorizontalOptions="End" | ||
Padding="0" | ||
Margin="0,0,0,0"> | ||
<StackLayout x:Name="totalReadOnlyFiatAmountLayout" | ||
Orientation="Horizontal" | ||
VerticalOptions="CenterAndExpand" | ||
HorizontalOptions="Center" | ||
Margin="0,0,0,0"> | ||
<Label Text="..." x:Name="totalReadOnlyFiatAmountLabel" | ||
VerticalOptions="CenterAndExpand" | ||
HorizontalOptions="Center" | ||
Margin="0,0,0,0" | ||
FontSize="22" | ||
TextColor="DarkBlue" /> | ||
<StackLayout Spacing="15" Orientation="Horizontal"> | ||
<Label VerticalOptions="Center" FontFamily="Icons" Text="#"/> | ||
<Label Text="Wipe your current wallet, in order to start from scratch"/> | ||
<StackLayout.GestureRecognizers> | ||
<TapGestureRecognizer CommandParameter="Wipe your current wallet, in order to start from scratch" Tapped="OpenSettings_Tapped"/> | ||
</StackLayout.GestureRecognizers> | ||
</StackLayout> | ||
</Frame> | ||
</StackLayout> | ||
</ContentPage> | ||
</FlyoutPage.Flyout> | ||
|
||
<!-- Main page--> | ||
<FlyoutPage.Detail> | ||
<ContentPage ios:Page.UseSafeArea="True" | ||
Title="Balances"> | ||
<StackLayout x:Name="mainLayout" | ||
Padding="0,0,0,0" | ||
VerticalOptions="FillAndExpand"> | ||
|
||
<!-- Settings icon--> | ||
<ImageButton TextColor="#111" | ||
x:Name="settingsIcon" | ||
BackgroundColor="Transparent" | ||
FontFamily="Icons" | ||
Padding="0" | ||
HeightRequest="30" | ||
WidthRequest="30" | ||
HorizontalOptions="Start" | ||
Margin="10,10,0,0" | ||
Clicked="OpenFlyout_Clicked"/> | ||
|
||
|
||
<StackLayout Orientation="Horizontal" | ||
Padding="15, 10" | ||
Spacing="30" | ||
VerticalOptions="FillAndExpand" | ||
HorizontalOptions="FillAndExpand"> | ||
|
||
<!-- we add {V|H}Options=Center* not only to the Label, as a workaround to | ||
https://github.com/xamarin/Xamarin.Forms/issues/4655 --> | ||
<Frame x:Name="totalFiatAmountFrame" | ||
HasShadow="false" | ||
BackgroundColor="Transparent" | ||
BorderColor="Transparent" | ||
VerticalOptions="CenterAndExpand" | ||
HorizontalOptions="End" | ||
Padding="0" | ||
Margin="0,0,0,0"> | ||
<StackLayout x:Name="totalFiatAmountLayout" | ||
Orientation="Horizontal" | ||
VerticalOptions="CenterAndExpand" | ||
HorizontalOptions="Center" | ||
Margin="0,0,0,0"> | ||
<Label Text="..." x:Name="totalFiatAmountLabel" | ||
VerticalOptions="CenterAndExpand" | ||
HorizontalOptions="Center" | ||
Margin="0,0,0,0" | ||
FontSize="22" /> | ||
</StackLayout> | ||
</Frame> | ||
|
||
<!-- keep this frame&stacklayout&label below almost same as previous! --> | ||
<Frame x:Name="totalReadOnlyFiatAmountFrame" | ||
HasShadow="false" | ||
IsVisible="false" | ||
BackgroundColor="Transparent" | ||
BorderColor="Transparent" | ||
VerticalOptions="CenterAndExpand" | ||
HorizontalOptions="End" | ||
Padding="0" | ||
Margin="0,0,0,0"> | ||
<StackLayout x:Name="totalReadOnlyFiatAmountLayout" | ||
Orientation="Horizontal" | ||
VerticalOptions="CenterAndExpand" | ||
HorizontalOptions="Center" | ||
Margin="0,0,0,0"> | ||
<Label Text="..." x:Name="totalReadOnlyFiatAmountLabel" | ||
VerticalOptions="CenterAndExpand" | ||
HorizontalOptions="Center" | ||
Margin="0,0,0,0" | ||
FontSize="22" | ||
TextColor="DarkBlue" /> | ||
</StackLayout> | ||
</Frame> | ||
|
||
<controls:CircleChartView x:Name="normalChartView" | ||
HorizontalOptions="FillAndExpand" | ||
VerticalOptions="FillAndExpand"/> | ||
<controls:CircleChartView x:Name="normalChartView" | ||
HorizontalOptions="FillAndExpand" | ||
VerticalOptions="FillAndExpand"/> | ||
|
||
<controls:CircleChartView x:Name="readonlyChartView" | ||
IsVisible="False" | ||
HorizontalOptions="FillAndExpand" | ||
VerticalOptions="FillAndExpand"/> | ||
<controls:CircleChartView x:Name="readonlyChartView" | ||
IsVisible="False" | ||
HorizontalOptions="FillAndExpand" | ||
VerticalOptions="FillAndExpand"/> | ||
|
||
</StackLayout> | ||
</StackLayout> | ||
|
||
<ScrollView HorizontalOptions="FillAndExpand"> | ||
<StackLayout x:Name="contentLayout" /> | ||
</ScrollView> | ||
<ScrollView HorizontalOptions="FillAndExpand"> | ||
<StackLayout x:Name="contentLayout" /> | ||
</ScrollView> | ||
|
||
<Label Text="www.geewallet.com" x:Name="footerLabel" | ||
VerticalOptions="End" | ||
HorizontalOptions="Center" | ||
Margin="0,10,0,10" /> | ||
</StackLayout> | ||
</ContentPage> | ||
<Label Text="www.geewallet.com" x:Name="footerLabel" | ||
VerticalOptions="End" | ||
HorizontalOptions="Center" | ||
Margin="0,10,0,10" /> | ||
</StackLayout> | ||
</ContentPage> | ||
</FlyoutPage.Detail> | ||
</FlyoutPage> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.