-
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 settings icon and side menu
- Loading branch information
Showing
8 changed files
with
147 additions
and
76 deletions.
There are no files selected for viewing
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,137 @@ | ||
<?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,0,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" | ||
Source="logo_512x512.png"/> | ||
|
||
<StackLayout Spacing="15" Orientation="Horizontal"> | ||
<Label TextColor="#BF0C27" VerticalOptions="Center" FontFamily="Icons" Text="#"/> | ||
<Label Text="Check you still remember your payment password"/> | ||
<StackLayout.GestureRecognizers><TapGestureRecognizer Tapped="OpenSettings_Tapped"/></StackLayout.GestureRecognizers> | ||
</StackLayout> | ||
|
||
<StackLayout Spacing="15" Orientation="Horizontal"> | ||
<Label TextColor="#BF0C27" VerticalOptions="Center" FontFamily="Icons" Text="#"/> | ||
<Label Text="Check you still remember your secret recovery phrase"/> | ||
<StackLayout.GestureRecognizers><TapGestureRecognizer 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 TextColor="#BF0C27" VerticalOptions="Center" FontFamily="Icons" Text="#"/> | ||
<Label Text="Wipe your current wallet, in order to start from scratch"/> | ||
<StackLayout.GestureRecognizers><TapGestureRecognizer 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--> | ||
<Button BackgroundColor="Transparent" | ||
TextColor="Black" | ||
FontFamily="Icons" | ||
Text="" | ||
FontSize="20" | ||
HeightRequest="20" | ||
HorizontalOptions="Start" | ||
Margin="20,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
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,14 +1,15 @@ | ||
namespace GWallet.Frontend.XF | ||
|
||
open System.Reflection | ||
open System.Runtime.CompilerServices | ||
open Xamarin.Forms | ||
|
||
[<assembly: AssemblyTitle("GWallet.Frontend.XF")>] | ||
[<assembly: AssemblyDescription("")>] | ||
[<assembly: AssemblyConfiguration("")>] | ||
[<assembly: AssemblyTrademark("")>] | ||
|
||
[<assembly: ExportFont("FontAwesomeSolid.otf", Alias = "Icons")>] | ||
do () | ||
//[<assembly: AssemblyDelaySign(false)>] | ||
//[<assembly: AssemblyKeyFile("")>] | ||
|
||
() | ||
|
Binary file not shown.