static CalligraphyConfig() { DEFAULT_STYLES.TryAdd(typeof(TextView), Android.Resource.Attribute.TextViewStyle); DEFAULT_STYLES.TryAdd(typeof(Button), Android.Resource.Attribute.ButtonStyle); DEFAULT_STYLES.TryAdd(typeof(EditText), Android.Resource.Attribute.EditTextStyle); DEFAULT_STYLES.TryAdd(typeof(AutoCompleteTextView), Android.Resource.Attribute.AutoCompleteTextViewStyle); DEFAULT_STYLES.TryAdd(typeof(MultiAutoCompleteTextView), Android.Resource.Attribute.AutoCompleteTextViewStyle); DEFAULT_STYLES.TryAdd(typeof(CheckBox), Android.Resource.Attribute.CheckboxStyle); DEFAULT_STYLES.TryAdd(typeof(RadioButton), Android.Resource.Attribute.RadioButtonStyle); DEFAULT_STYLES.TryAdd(typeof(ToggleButton), Android.Resource.Attribute.ButtonStyleToggle); if (CalligraphyUtils.CanAddV7AppCompatViews()) { AddAppCompatViews(); } }
protected static bool ParentIsToolbarV7(View view) => CalligraphyUtils.CanCheckForV7Toolbar() && view.Parent != null && (view.Parent.GetType().IsAssignableFrom(Java.Lang.Class.ForName("android.support.v7.widget.Toolbar").GetType()));