/** * @return a new instance of BootstrapText, constructed according to Builder arguments. */ public BootstrapText Build() { BootstrapText bootstrapText = new BootstrapText(_sb.ToString()); foreach (var entry in _fontIndicesMap) { int index = entry.Key; var span = new AwesomeTypefaceSpan(TypefaceProvider.GetTypeface(_context.ApplicationContext, entry.Value)); bootstrapText.SetSpan(span, index - 1, index, SpanTypes.InclusiveInclusive); } return(bootstrapText); }
public void SetBootstrapText(BootstrapText bootstrapText) { _bootstrapText = bootstrapText; UpdateBootstrapState(); }