Spinner small size

I have a counter with data contents, but the counter is very small. How can I put a differrent spinner?

+6
source share
1 answer

I think you are talking about the drop down list (otherwise you just need to resize the Spinner in the XML file).

You have another way to install the adapter in fact, for example, when you declared your ArrayAdapter (or another adapter), you can set the layout for placing data in the view.

See Android.R.layout

For example: "simple_spinner_item" is really small, so you prefer to use another one, for example, "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 what you are saying (if this is a Spinner element or list)

+10
source

Source: https://habr.com/ru/post/885765/


All Articles