我目前正在 ionic v4 上开发一个应用程序,我的问题是我无法移除焦点的边缘,以前在 ionic v3 中只有这些代码行放在 variable.css 中并准备就绪,但在这个版本中它不起作用,谢谢
$text-input-md-highlight-color-invalid: transparent;
$text-input-md-highlight-color-valid: transparent;
$text-input-md-show-invalid-highlight: transparent;
$text-input-md-highlight-color: transparent;
$text-input-md-show-valid-highlight: transparent;
$text-input-md-show-focus-highlight: transparent;
$text-input-md-show-valid-highlight: $text-input-md-show-focus-highlight transparent;
$text-input-md-show-invalid-highlight: $text-input-md-show-focus-highlight transparent;
Run Code Online (Sandbox Code Playgroud)
我有作为一个小项目来创建的阵列Name,Surname并且Email其中我在使用值创建的xml
这是我的 xml Name,以字符串命名names
<resources>
<string name="names">
<item>Ivan</item>
<item>Santiago</item>
.....
</string>
</resources>
Run Code Online (Sandbox Code Playgroud)
这是我的 XML,名为 Surnames,带有一个名为 surnames 的字符串
<resources>
<string name="surnames">
<item>Rodríguez</item>
<item>Gómez</item>
<item>López</item>
.....
</string>
</resources>
Run Code Online (Sandbox Code Playgroud)
public class Registro extends AppCompatActivity implements View.OnClickListener {
private TextView Nombre,Apellido,Correo;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_registro);
//Seteamos las Cajas de Texto
Nombre = (TextView) findViewById(R.id.txtNombre);
Apellido = (TextView) findViewById(R.id.txtApellido);
Correo = (TextView) findViewById(R.id.txtCorreo);
//Ponemos en Modo de Escucha al Boton
findViewById(R.id.btnGenerar).setOnClickListener(this);
}
@Override …Run Code Online (Sandbox Code Playgroud)