Multiple Spinners in one

0
  

I have a Spinner A, I would like if I clicked on an A option, I would open an option in B, If I clicked on the second item in A, I would open a different one in b, multiple inputtext in a single spinner

    catliv = (Spinner) findViewById(R.id.catergorialiv);


    List<String> list = new ArrayList<String>();
    list.add("Categoria");
    list.add("Informática");
    list.add("Didatico");
    list.add("Literatura");
    list.add("Infantil");

    ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this,
            android.R.layout.simple_spinner_item, list);

    dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
    catliv.setAdapter(dataAdapter);
  

Spinner 2:

    subcatlivro = (Spinner) findViewById(R.id.subcatergorialiv);
    subcatlivro.setVisibility(View.GONE);

    List<String> list6 = new ArrayList<String>();
    list6.add("Subcategoria");
    list6.add("Aplicativos");
    list6.add("Banco de dados");
    list6.add("Computação Gráfica");
    list6.add("Engenharia da Computação");
    list6.add("Gerenciamento de Projetos");
    list6.add("Hardware");
    list6.add("Inteligência Artificial");
    list6.add("Internet");
    list6.add("Jogos");
    
asked by anonymous 14.07.2017 / 14:41

0 answers