Found the solution.
 

setPadding(0, 0, 0, 0);

 

Didn't know this existed.

 

Segunda-feira, 29 de Abril de 2013 9:55:07 UTC+1, Filipe escreveu:

> Hi,
>  
> I need to create a small spinner in height.
>  
> So I created a spinner with 58pixels height, but it has big borders on top 
> and bottom, so it cuts most of the text.
> It has a top border of 25 pixels and a bottom border of 19 pixels.
> So from the total 58 pixels, only 14 are used to show the text.
>  
> How can I change this? How can I decrease the top and bottom borders or 
> increase the text area?
> I have tryed to change the background drawable with 9 patch png, but it 
> does not affect the area used for the text.
> I need to do it programatically.
>  
>  
> Thanks
> Filipe Madureira
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to