This is just an example, which may not be applicable exactly in your case.
public View getView(int position, View convertView,
ViewGroup parent)
{
LayoutInflater inflater=context.getLayoutInflater();//initiliaze
context in ur constructor
View row=inflater.inflate(R.layout.row, null);
TextView label=(TextView)row.findViewById(R.id.label);
label.setText(item[position]);
* float size = label.getTextSize();
label.setTextSize((float)((2)*size));*
return(row);
}
On Mon, Feb 1, 2010 at 11:14 AM, Andrei <[email protected]> wrote:
> true
> is there example?
>
> On Jan 31, 7:01 pm, android beginner <[email protected]>
> wrote:
> > I believe in your custom ArrayAdapter, you would have override getView.
> >
> > get the default text size, double the size and again set the text size.
> >
> > Hope this helps.
> >
> > On Mon, Feb 1, 2010 at 10:51 AM, Andrei <[email protected]> wrote:
> > > How do i set row height if text of some rows more than one line when
> > > writing
> > > custom ArrayAdapter?
> > > Thanks
> >
> > > --
> > > 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]<android-developers%[email protected]>
> <android-developers%[email protected]<android-developers%[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 post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[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 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