Android Question [SOLVED] ACSPinner drawable size

JordiCP

Expert
Licensed User
Longtime User
Hi all,

I am stuck with a problem, perhaps I am not facing it correctly...or perhaps it is not possible

I have a spinner which would like to populate with graphics (one bitmap per entry)

ACSpinner allows to add text items, and also text + drawable (with Add2 method).

The problem is that the drawable has always a given size (at least as I have tried it), which is too small for my needs. If I change the textsize, the text changes correctly and also item height increases to adapt the text size, but I don't see a way to change the size of the drawable.

B4X:
  'Origin selection: spinner
   spOrigin.Initialize("spOrigin")
   
   Dim bv As BitmapDrawable
   bv.Initialize(LoadBitmap(File.DirAssets,"icon1.png"))
   Dim bv2 As BitmapDrawable
   bv2.Initialize(LoadBitmap(File.DirAssets,"icon2.png"))  
   spOrigin.Add2("",bv)
   spOrigin.Add2("",bv2)
   
  'spOrigin.TextSize=48               '<--------- have tried changing, but only changes text size if present

If I don't succeed with it I will use instead a small class with a panel and some views in it to simulate the desired behaviour, but I would prefer to use the spinner if possible
 
Top