I have an android custom renderer for a Xamarin Forms EntryCell control. As far as I can tell the EntryCell is a combination of an input and a label. I would like to modify the following properties:
- Font of the EntryCell label
- Color of the EntryCell Label
- TextSize of the EntryCell Label
- Color of the text of the input control
I have been able to change the colour and size of the EntryCell input using the code below
public class CustomEntryCellRenderer : EntryCellRenderer
{
protected override Android.Views.View GetCellCore(Cell item, Android.Views.View convertView, ViewGroup parent, Context context)
{
var cell = base.GetCellCore(item, convertView, parent, context) as EntryCellView;
if (cell != null)
{
var textField = cell.EditText as TextView;
textField.SetTextSize(Android.Util.ComplexUnitType.Dip, 20);
textField.SetTextColor(Color.FromHex("#FF8800").ToAndroid());
}
return cell;
}
}
Can you please let me know how I access the label part of the EntryCell?