GoConqr has a new look! Let us know what you think.

Module 1 of 6 · Mind map

Fundamentos TM

Pedro Alejandro Núñez castañeda

Codificación de Vistas:

  1. AutoCompleteTextView: subclase de EditText

  • String[] array = {"1", "2"}
  • ArrayAdapter<String> adp = ArrayAdapter<String> (this,android.R.layout.simple_dropdown_item_1line, arr)
  • AutoCompleteTextView autv = ....
  • autv.setThreshold(x); #elegir número mínimo de caracteres ingresados para sugerir
  • autv.setAdapter(adp);

  2. TimePicker: seleccionar una hora del día

  • TimePicker tmp = ...
  • tmp.setIs24HourView(true)
  • tmp.getCurrentHour() #Obtener la hora seleccionada
  • tmp.getCurrentMinute()

 

  3. DatePicker: seleccionar fecha

  • DatePicker dtp = ...
  • dtp.getDayOfMonth() #Obtener el mes seleccionado
  • dtp.getYear()
  • dtp.getMonth()

  4. ListView: lista de elementos con desplazamiento vertical

  • String[] array = {"1", "2"}
  • setListAdapter(new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1, arr)
  • onListItemClick(ListView parent, View v, int position, long id){  }

  5. Gallery:

  • Gallery gal = ...
  • gal.setAdapter(new ImageAdapter(this));
  • gal.setOnItemClickListener(new ...){public void onItemClick(parent, vpos,id){...}}
  • Integer[] intarr = {R.drawable.x,...}
  • ImageView imgv = ...;
  • imgv.setImageResource(intarr);

 

Instructions

You must submit an attempt for this quiz to progress. You can submit it after the last question.

Go to the chosen module

Feedback

What is it about?

What do you think of the new look?

How do you like it?