This is a migrated thread and some comments may be shown as answers.

Setting font to DataFormSpinnerEditor

1 Answer 60 Views
DataForm - Xamarin.Android
This is a migrated thread and some comments may be shown as answers.
Rodrigo
Top achievements
Rank 1
Veteran
Rodrigo asked on 01 Nov 2020, 01:37 PM

Hi,

would it possible to get sample of how set Font (TypeFace) DataFormSpinnerEditor, same as to DataFormTextEditor and DataFormIntegerEditor using EditorCustomizations delegate?

Regards,

Rodrigo

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 04 Nov 2020, 11:18 AM

Hi Rodrigo,

I do not have a complete sample at hand, still, in general,  DataFormSpinnerEditor uses Android.Widget.Spinner as an EditorView.  So, inside the EditorCustomizations delegate you would need to access the native Spinner and apply the needed changes:

case "EmployeeType":
	TextView headerView1 = (TextView)entityPropertyViewer.HeaderView;
	headerView1.Typeface = Typeface.Monospace;
	Spinner editorView1 = (Spinner)entityPropertyViewer.EditorView;					
	break;

You can find useful resources on customizing the spinner in the following Xamarin forum thread: 

https://forums.xamarin.com/discussion/8412/customize-the-appearance-of-spinner

I hope this would be helpful.

Regards,
Yana
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
DataForm - Xamarin.Android
Asked by
Rodrigo
Top achievements
Rank 1
Veteran
Answers by
Yana
Telerik team
Share this question
or