user5011938
user5011938

Reputation:

How to increase size of drop down items of Spinner?

How can I increase the size of Drop Down Items in Spinner? Its looking too small on my device

<Spinner
    android:id="@+id/spinner1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentLeft="true"
    android:layout_alignParentTop="true" />

see image below

enter image description here

Upvotes: 2

Views: 2481

Answers (3)

JuliusTrey
JuliusTrey

Reputation: 126

I can increase the dropdown width by using the android:dropDownWidth

<Spinner
        android:id="@+id/spinnerSports"
        android:layout_height="wrap_content"
        android:layout_width="wrap_content"
        android:entries="@array/questionResponses"
        android:dropDownWidth="150dp"/>

Upvotes: 2

N J
N J

Reputation: 27515

I think you have to define custom adapter for Spinner Steps :

  1. create custom adapter like list,grid.
  2. set your custom adapter to Spinner

see this tutorial

Upvotes: 0

Sanjeev
Sanjeev

Reputation: 4375

In the adapter that you have created for spinner add this

adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);

Upvotes: 0

Related Questions