[Free]DjSpinnerTool Style a Spinner

With this extension you are able to style the native spinner component (version 5):

  • gradient colors
  • border width and color
  • rounded corner
  • edit arrow: scale, position, color, load custom arrow from assets
  • use MaterialIcons and FontAwesome


Example:

DjSpinnerToolTest_1.aia (210.8 KB)

com.django.djspinnertool.aix (36.9 KB)

15 Likes

Great extension! Is it possible to change the background color of the spinner and the color of the arrow as well?

You could use a button to call the spinner then use material icons (or similar) to set the text and down arrow, and format the colours for the button.

The background color of the spinner can already be setted.
Added method to set the arrow color.

3 Likes

Wow, great! You are my hero.

Great.
Many thanks

Small Update:

  • added round corners
  • set arrow left or right

Big Update in first post!

1 Like

Update version 5 in first post. I think there is nothing more to add.

Isn't it possible to also choose the height of the spinner's item box? And perhaps even spread the text of a single item across multiple lines.
My list items are a bit long, and half of the text isn't visible. If you could adjust the height of the items and set the text across multiple lines, that would be perfect!

Spinner Height / Spinner Width

" If you could adjust the height of the items and set the text across multiple lines, that would be perfect!"

This would need a custom xml design for the spinner, that I am not able to create and implement into this extension at the moment. My extension uses the Reflection method and only overrides the native spinner. Unfortunately Item height and width settings for the dropdown items are not supported by this method. Also no multiline text. \n to create a new line also doesnt work.
But of course you can set the Textsize or shrink your item names.

Update:
Bild_2025-07-31_232119832



Updated aix and aia files in the first post

1 Like