mirror of
https://github.com/bitwarden/android.git
synced 2024-11-01 15:45:42 +03:00
39 lines
976 B
C#
39 lines
976 B
C#
|
using System;
|
|||
|
using Xamarin.Forms;
|
|||
|
|
|||
|
namespace Bit.App.Controls
|
|||
|
{
|
|||
|
public class FormEntryCell : ViewCell
|
|||
|
{
|
|||
|
public FormEntryCell(string labelText, Keyboard entryKeyboard = null, bool IsPassword = false)
|
|||
|
{
|
|||
|
Label = new Label
|
|||
|
{
|
|||
|
Text = labelText,
|
|||
|
FontSize = 14,
|
|||
|
TextColor = Color.FromHex("777777")
|
|||
|
};
|
|||
|
|
|||
|
Entry = new ExtendedEntry
|
|||
|
{
|
|||
|
Keyboard = entryKeyboard,
|
|||
|
HasBorder = false
|
|||
|
};
|
|||
|
|
|||
|
var stackLayout = new StackLayout
|
|||
|
{
|
|||
|
Padding = new Thickness(15, 15, 15, 0),
|
|||
|
BackgroundColor = Color.White
|
|||
|
};
|
|||
|
|
|||
|
stackLayout.Children.Add(Label);
|
|||
|
stackLayout.Children.Add(Entry);
|
|||
|
|
|||
|
View = stackLayout;
|
|||
|
}
|
|||
|
|
|||
|
public Label Label { get; private set; }
|
|||
|
public ExtendedEntry Entry { get; private set; }
|
|||
|
}
|
|||
|
}
|