This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
editText.setPadding(0, 0, 0, 0); | |
editText.setBackground(null); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
android:padding="0dp" | |
android:background="@null" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
textView.textContainerInset = .zero | |
textView.textContainer.lineFragmentPadding = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
textView.isScrollEnabled = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
textView.isEditable = false | |
textView.isSelectable = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Xamarin.Forms; | |
... | |
public class ExtendedDatePicker : DatePicker | |
{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Foundation; | |
using UIKit; | |
using Xamarin.Forms; | |
... | |
public class DatePickerDelegate : NSObject, IUITextFieldDelegate | |
{ | |
[Export("textField:shouldChangeCharactersInRange:replacementString:")] | |
public bool ShouldChangeCharacters(UITextField textField, NSRange range, string replacementString) => | |
false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Xamarin.Forms; | |
using Xamarin.Forms.Platform.iOS; | |
... | |
[assembly: ExportRenderer(typeof(ExtendedDatePicker), typeof(ExtendedDatePickerRenderer))] | |
... | |
public class ExtendedDatePickerRenderer : DatePickerRenderer | |
{ | |
private readonly DatePickerDelegate _delegate = new DatePickerDelegate(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Xamarin.Forms; | |
using Xamarin.Forms.Platform.Android; | |
... | |
[assembly: ExportRenderer(typeof(ExtendedDatePicker), typeof(ExtendedDatePickerRenderer))] | |
... | |
public class ExtendedDatePickerRenderer : DatePickerRenderer | |
{ | |
public ExtendedDatePickerRenderer(Context context) : base(context) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Android.Views; | |
... | |
public class CustomSelectionActionModeCallback : Java.Lang.Object, ActionMode.ICallback | |
{ | |
public bool OnActionItemClicked(ActionMode m, IMenuItem i) => false; | |
public bool OnCreateActionMode(ActionMode mode, IMenu menu) => false; | |
public bool OnPrepareActionMode(ActionMode mode, IMenu menu) => true; |