我有一个带有隐藏/取消隐藏图像和自定义字体的条目,该条目用于密码,因此默认情况下,我将其IsVisible设置为false。当用户单击取消隐藏图像时,我正在显示使IsVisible变为true。但是,当我可以确定占位符的自定义字体时,将其更改为android的默认字体,但我不希望使用默认字体。在这方面请帮助我,谢谢。
我的代码: 在xaml
global $cmb2; // This is calling an instance of "cmb2Opciones", created at init
$box->add_group_field( $group, array(
'name' => __('Teléfono fijo', 'uniagraria'),
'id' => $prefix . 'contactos_fijos',
'type' => 'fijos',
'repeatable' => true,
'sanitization_cb' => array( $cmb2, 'cmb2_sanitize_telefonos' ),
'escape_cb' => array( $cmb2, 'cmb2_escape_telefonos' ),
'text' => array(
'add_row_text' => __('Agregar otro teléfono fijo', 'uniagraria'),
),
));
$box->add_group_field( $group, array(
'name' => __('Celular', 'uniagraria'),
'id' => $prefix . 'contactos_celulares',
'type' => 'celulares',
'repeatable' => true,
'sanitization_cb' => array( $cmb2, 'cmb2_sanitize_telefonos' ),
'escape_cb' => array( $cmb2, 'cmb2_escape_telefonos' ),
'text' => array(
'add_row_text' => __('Agregar otro celular', 'uniagraria'),
),
));