123456789101112131415161718192021222324252627282930313233 |
- using Android.Content;
- using Android.Graphics.Drawables;
- using Android.Text;
- using Xamarin.Forms;
- using Xamarin.Forms.Platform.Android;
- using InABox.Mobile;
- using InABox.Mobile.Android;
- [assembly: ExportRenderer(typeof(MobileEntry), typeof(MobileEntryRenderer))]
- namespace InABox.Mobile.Android
- {
- class MobileEntryRenderer : EntryRenderer
- {
- public MobileEntryRenderer(Context context) : base(context)
- {
- }
- protected override void OnElementChanged(ElementChangedEventArgs<Entry> e)
- {
- base.OnElementChanged(e);
- if (Control != null)
- {
- GradientDrawable gd = new GradientDrawable();
- gd.SetColor(global::Android.Graphics.Color.Transparent);
- this.Control.SetBackgroundDrawable(gd);
- //this.Control.SetRawInputType(InputTypes.TextFlagNoSuggestions);
- //Control.SetHintTextColor(ColorStateList.ValueOf(global::Android.Graphics.Color.White));
- }
- }
- }
- }
|