mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 23:25:45 +03:00
stub out settings page
This commit is contained in:
parent
cc7ccf921b
commit
4f3a3a5b19
3 changed files with 42 additions and 32 deletions
|
@ -4,39 +4,46 @@
|
|||
x:Class="Bit.App.Pages.SettingsPage"
|
||||
xmlns:pages="clr-namespace:Bit.App.Pages"
|
||||
xmlns:controls="clr-namespace:Bit.App.Controls"
|
||||
xmlns:bv="clr-namespace:Bit.App.Controls.BoxedView"
|
||||
xmlns:u="clr-namespace:Bit.App.Utilities"
|
||||
x:DataType="pages:SettingsPageViewModel"
|
||||
Title="{Binding PageTitle}">
|
||||
<ContentPage.BindingContext>
|
||||
<pages:SettingsPageViewModel />
|
||||
</ContentPage.BindingContext>
|
||||
|
||||
<bv:BoxedView HasUnevenRows="True">
|
||||
<bv:BoxedSection Title="The Title"
|
||||
FooterText="The Footer"
|
||||
UseDragSort="True">
|
||||
<bv:EntryCell Title="The title"
|
||||
ValueText="The value for entry"
|
||||
Button1Icon="cogs"
|
||||
Button1Command="{Binding ButtonCommand}"
|
||||
Button2Icon="cogs"
|
||||
Button2Command="{Binding Button2Command}"
|
||||
Button3Icon="cogs" />
|
||||
<bv:LabelCell Title="The title"
|
||||
ValueText="The value" />
|
||||
<bv:LabelCell Title="The title 2"
|
||||
Button1Icon="cogs"
|
||||
Button1Command="{Binding ButtonCommand}"
|
||||
Button3Icon="cogs"
|
||||
ValueText="The value" />
|
||||
<bv:LabelCell Title="The title 3"
|
||||
ValueText="The value"
|
||||
Button3Icon="cogs" />
|
||||
<bv:LabelCell Title="The title 4"
|
||||
ValueText="The value" />
|
||||
<bv:LabelCell Title="The title 5"
|
||||
ValueText="The value" />
|
||||
</bv:BoxedSection>
|
||||
</bv:BoxedView>
|
||||
<ScrollView x:Name="_scrollView">
|
||||
<StackLayout Spacing="20">
|
||||
<StackLayout StyleClass="box">
|
||||
<StackLayout StyleClass="box-row-header">
|
||||
<Label Text="{u:I18n Manage}"
|
||||
StyleClass="box-header, box-header-platform" />
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
<StackLayout StyleClass="box">
|
||||
<StackLayout StyleClass="box-row-header">
|
||||
<Label Text="{u:I18n Security}"
|
||||
StyleClass="box-header, box-header-platform" />
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
<StackLayout StyleClass="box">
|
||||
<StackLayout StyleClass="box-row-header">
|
||||
<Label Text="{u:I18n Account}"
|
||||
StyleClass="box-header, box-header-platform" />
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
<StackLayout StyleClass="box">
|
||||
<StackLayout StyleClass="box-row-header">
|
||||
<Label Text="{u:I18n Tools}"
|
||||
StyleClass="box-header, box-header-platform" />
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
<StackLayout StyleClass="box">
|
||||
<StackLayout StyleClass="box-row-header">
|
||||
<Label Text="{u:I18n Other}"
|
||||
StyleClass="box-header, box-header-platform" />
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
</ScrollView>
|
||||
|
||||
</ContentPage>
|
||||
|
|
|
@ -10,11 +10,13 @@ namespace Bit.App.Pages
|
|||
{
|
||||
public partial class SettingsPage : ContentPage
|
||||
{
|
||||
private SettingsPageViewModel _vm;
|
||||
|
||||
public SettingsPage()
|
||||
{
|
||||
InitializeComponent();
|
||||
var viewModel = BindingContext as SettingsPageViewModel;
|
||||
viewModel.Page = this;
|
||||
_vm = BindingContext as SettingsPageViewModel;
|
||||
_vm.Page = this;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using Bit.App.Resources;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Windows.Input;
|
||||
|
@ -10,7 +11,7 @@ namespace Bit.App.Pages
|
|||
{
|
||||
public SettingsPageViewModel()
|
||||
{
|
||||
PageTitle = "Settings";
|
||||
PageTitle = AppResources.Settings;
|
||||
|
||||
ButtonCommand = new Command(() => Page.DisplayAlert("Button 1 Command", "Button 1 message", "Cancel"));
|
||||
Button2Command = new Command(() => Page.DisplayAlert("Button 2 Command", "Button 2 message", "Cancel"));
|
||||
|
|
Loading…
Reference in a new issue