2016-07-24 06:50:08 +03:00
|
|
|
|
using System;
|
|
|
|
|
using Bit.App.Controls;
|
|
|
|
|
using Xamarin.Forms;
|
|
|
|
|
|
|
|
|
|
namespace Bit.App.Pages
|
|
|
|
|
{
|
|
|
|
|
public class SettingsCreditsPage : ExtendedContentPage
|
|
|
|
|
{
|
|
|
|
|
public SettingsCreditsPage()
|
|
|
|
|
{
|
|
|
|
|
Init();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Init()
|
|
|
|
|
{
|
|
|
|
|
var table = new ExtendedTableView
|
|
|
|
|
{
|
|
|
|
|
EnableScrolling = true,
|
2016-07-28 07:39:35 +03:00
|
|
|
|
Intent = TableIntent.Settings,
|
2016-07-24 06:50:08 +03:00
|
|
|
|
HasUnevenRows = true,
|
|
|
|
|
EnableSelection = false,
|
|
|
|
|
Root = new TableRoot
|
|
|
|
|
{
|
|
|
|
|
new TableSection("Icons")
|
|
|
|
|
{
|
2016-07-27 06:21:04 +03:00
|
|
|
|
new CustomViewCell(@"Tools by Alex Auda Samora from the Noun Project
|
2016-07-30 19:17:32 +03:00
|
|
|
|
Fingerprint by masterpage.com from the Noun Project")
|
2016-07-24 06:50:08 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
if(Device.OS == TargetPlatform.iOS)
|
|
|
|
|
{
|
|
|
|
|
table.RowHeight = -1;
|
|
|
|
|
table.EstimatedRowHeight = 100;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Title = "Thank You";
|
|
|
|
|
Content = table;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class CustomViewCell : ViewCell
|
|
|
|
|
{
|
|
|
|
|
public CustomViewCell(string text)
|
|
|
|
|
{
|
|
|
|
|
var label = new Label
|
|
|
|
|
{
|
|
|
|
|
LineBreakMode = LineBreakMode.WordWrap,
|
|
|
|
|
Text = text,
|
|
|
|
|
FontSize = Device.GetNamedSize(NamedSize.Small, typeof(Label))
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
var layout = new StackLayout
|
|
|
|
|
{
|
|
|
|
|
Children = { label },
|
|
|
|
|
Padding = new Thickness(15, 20)
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
View = layout;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|