Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spinner Small Size

I have a spinner with data content, but the spinner is very small. How can i put the spinner diferrent?

like image 381
jpmd Avatar asked Apr 12 '11 22:04

jpmd


People also ask

Is spinner good for brain?

“Some theories do mention that fidgeting stimulates the neurotransmitters in the brain, improves focus by putting away our distractions, and thus helps us concentrate on the one important thing that we are doing," says Dr Srivastava.

How much is a spinner?

The selection includes metallic, glow-in-the-dark, and standard fidget spinners, and prices are generally $19.99 apiece.

What is a toy spinner?

A fidget spinner is a toy that consists of a ball bearing in the center of a multi-lobed (typically two or three) flat structure made from metal or plastic designed to spin along its axis with pressure. Fidget spinners became trending toys in 2017, although similar devices had been invented as early as 1993.


1 Answers

I guess you're talking about the "drop down" item list (in the other case you would just have to change the size of the Spinner in the xml file).

You have differents way to set the Adapter actually, for example, when you declared your ArrayAdapter (or another Adapter), you can set a layout to put data in a View.

See Android.R.layout

For example : "simple_spinner_item" is really small so you'd rather use another one like "simple_dropdown_item_1line"

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

Can you show us some code if this is not what you are looking for ? I'm not sure of what you are talking (if it's the Spinner element or the list)

like image 55
ClemM Avatar answered Oct 24 '22 19:10

ClemM