mirror of
https://github.com/bitwarden/mobile
synced 2025-12-12 14:23:26 +00:00
ios extended entry options. next button actions for add site page
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
using Xamarin.Forms;
|
||||
using System;
|
||||
using Xamarin.Forms;
|
||||
|
||||
namespace Bit.App.Controls
|
||||
{
|
||||
public class FormEntryCell : ExtendedViewCell
|
||||
{
|
||||
public FormEntryCell(string labelText, Keyboard entryKeyboard = null, bool IsPassword = false)
|
||||
public FormEntryCell(string labelText, Keyboard entryKeyboard = null, bool IsPassword = false, VisualElement nextElement = null)
|
||||
{
|
||||
Label = new Label
|
||||
{
|
||||
@@ -18,9 +19,17 @@ namespace Bit.App.Controls
|
||||
{
|
||||
Keyboard = entryKeyboard,
|
||||
HasBorder = false,
|
||||
VerticalOptions = LayoutOptions.CenterAndExpand
|
||||
VerticalOptions = LayoutOptions.CenterAndExpand,
|
||||
IsPassword = IsPassword,
|
||||
TextColor = Color.FromHex("333333")
|
||||
};
|
||||
|
||||
if(nextElement != null)
|
||||
{
|
||||
Entry.ReturnType = Enums.ReturnType.Next;
|
||||
Entry.Completed += (object sender, EventArgs e) => { nextElement.Focus(); };
|
||||
}
|
||||
|
||||
var stackLayout = new StackLayout
|
||||
{
|
||||
Padding = new Thickness(15)
|
||||
|
||||
Reference in New Issue
Block a user