Problem stop importing Edittext class

Asked

Viewed 142 times

0

I’m trying to import the Edittext class and I can’t, which may be?

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.EditText;
import android.widget.ArrayAdapter;
import android.widget.ImageButton;
import android.widget.RadioButton;
import android.widget.Spinner;

public class TelaCadastro extends AppCompatActivity{

Usuario usuario = new Usuario();
private EditText tfNome;
private EditText tfIdade;
private EditText tfAltura;
private EditText tfPeso;
private EditText tfLogin;
private EditText tfSenha;
private RadioButton rbMasculino;
private RadioButton rbFeminino;
private Spinner spinner;
ImageButton next;

protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.tela_cadastro);

    //Spinner (combo box)
    spinner = (Spinner) findViewById(R.id.spinner);
    ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,
            R.array.planets_array,
            android.R.layout.simple_spinner_item);
    adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
    spinner.setAdapter(adapter);

    tfNome = (EditText) findViewById(R.id.tf_nome);
    tfIdade = (EditText) findViewById(R.id.tf_idade);
    tfAltura = (EditText) findViewById(R.id.tf_altura);
    tfPeso = (EditText) findViewById(R.id.tf_peso);
    tfLogin = (EditText) findViewById(R.id.tf_login);
    tfSenha = (EditText) findViewById(R.id.tf_senha);
}

no import android.widget.Edittext; error appears "Cannot resolve Symbol 'Edittext'"

  • Do not print the code. Post the checkable code or your question will be closed.

  • Sorry, I’m all set

  • Better this way. Good luck!

  • try a clean and rebuild in design

  • I solved my problem, it didn’t work clean, what I did was a totally drastic and desperate medium. I reinstalled the android studio in the previous version and now ta all right. Thank you very much!

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.