mirror of
https://github.com/bitwarden/android.git
synced 2024-12-31 21:38:27 +03:00
82 lines
3.6 KiB
XML
82 lines
3.6 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<pages:BaseContentPage
|
|
xmlns="http://xamarin.com/schemas/2014/forms"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
x:Class="Bit.App.Pages.CiphersPage"
|
|
xmlns:pages="clr-namespace:Bit.App.Pages"
|
|
xmlns:controls="clr-namespace:Bit.App.Controls"
|
|
xmlns:u="clr-namespace:Bit.App.Utilities"
|
|
xmlns:views="clr-namespace:Bit.Core.Models.View;assembly=BitwardenCore"
|
|
xmlns:core="clr-namespace:Bit.Core;assembly=BitwardenCore"
|
|
x:DataType="pages:CiphersPageViewModel"
|
|
x:Name="_page"
|
|
Title="{Binding PageTitle}">
|
|
|
|
<ContentPage.BindingContext>
|
|
<pages:CiphersPageViewModel />
|
|
</ContentPage.BindingContext>
|
|
|
|
<ContentPage.Resources>
|
|
<ResourceDictionary>
|
|
<ToolbarItem Text="{u:I18n Close}" Clicked="Close_Clicked" Order="Primary" Priority="-1"
|
|
x:Name="_closeItem" x:Key="closeItem" />
|
|
<StackLayout
|
|
Orientation="Horizontal"
|
|
VerticalOptions="FillAndExpand"
|
|
HorizontalOptions="FillAndExpand"
|
|
Spacing="0"
|
|
Padding="0"
|
|
x:Name="_titleLayout"
|
|
x:Key="titleLayout">
|
|
<controls:MiButton
|
|
StyleClass="btn-title, btn-title-platform"
|
|
Text=""
|
|
VerticalOptions="CenterAndExpand"
|
|
Clicked="BackButton_Clicked"
|
|
x:Name="_backButton" />
|
|
<controls:ExtendedSearchBar
|
|
x:Name="_searchBar"
|
|
HorizontalOptions="FillAndExpand"
|
|
TextChanged="SearchBar_TextChanged"
|
|
SearchButtonPressed="SearchBar_SearchButtonPressed"
|
|
Placeholder="{Binding PageTitle}" />
|
|
</StackLayout>
|
|
<BoxView StyleClass="list-section-separator-bottom, list-section-separator-bottom-platform"
|
|
x:Name="_separator" x:Key="separator" />
|
|
</ResourceDictionary>
|
|
</ContentPage.Resources>
|
|
|
|
<StackLayout x:Name="_mainLayout" Spacing="0" Padding="0">
|
|
<controls:IconLabel IsVisible="{Binding ShowSearchDirection}"
|
|
Text="{Binding Source={x:Static core:BitwardenIcons.Search}}"
|
|
StyleClass="text-muted"
|
|
FontSize="50"
|
|
VerticalOptions="CenterAndExpand"
|
|
HorizontalOptions="CenterAndExpand"
|
|
HorizontalTextAlignment="Center" />
|
|
<Label IsVisible="{Binding ShowNoData}"
|
|
Text="{u:I18n NoItemsToList}"
|
|
Margin="20, 0"
|
|
VerticalOptions="CenterAndExpand"
|
|
HorizontalOptions="CenterAndExpand"
|
|
HorizontalTextAlignment="Center" />
|
|
<controls:ExtendedCollectionView
|
|
IsVisible="{Binding ShowList}"
|
|
ItemsSource="{Binding Ciphers}"
|
|
VerticalOptions="FillAndExpand"
|
|
SelectionMode="Single"
|
|
SelectionChanged="RowSelected"
|
|
StyleClass="list, list-platform">
|
|
<CollectionView.ItemTemplate>
|
|
<DataTemplate x:DataType="views:CipherView">
|
|
<controls:CipherViewCell
|
|
Cipher="{Binding .}"
|
|
ButtonCommand="{Binding BindingContext.CipherOptionsCommand, Source={x:Reference _page}}"
|
|
WebsiteIconsEnabled="{Binding BindingContext.WebsiteIconsEnabled, Source={x:Reference _page}}"
|
|
/>
|
|
</DataTemplate>
|
|
</CollectionView.ItemTemplate>
|
|
</controls:ExtendedCollectionView>
|
|
</StackLayout>
|
|
|
|
</pages:BaseContentPage>
|