小编Iva*_*res的帖子

删除 ionic 4 中输入的边缘

我目前正在 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)

在此处输入图片说明

ionic4

1
推荐指数
1
解决办法
1586
查看次数

从Android中的数组中获取随机字符串并将其放置在文本视图中

我有作为一个小项目来创建的阵列NameSurname并且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)

android

0
推荐指数
1
解决办法
4518
查看次数

标签 统计

android ×1

ionic4 ×1