hi , '
use these lines in ur application
On Mon, May 9, 2011 at 3:27 PM, subhashini alaguchokku <
[email protected]> wrote:
> Hi!
>
> how to implement the following concept
>
>
> Typeface tf=Typeface.createFromAsset(getAssets(), "maduram.ttf");
> holder.text1=(TextView)vi.findViewById(R.id.text1);
> holder.text1.setTypeface(tf);
>
> i hope this will work 4 u..
>
>
> Here.
>
>
>
> public View getView(int position, View convertView, ViewGroup parent) {
> View vi=convertView;
> ViewHolder holder;
> if(convertView==null){
> System.out.println("inside
> null........................................");
> vi = inflater.inflate(R.layout.item, null);
> holder=new ViewHolder();
> holder.text=(TextView)vi.findViewById(R.id.text);
> holder.text1=(TextView)vi.findViewById(R.id.text1);
> //Typeface typeface =
> Typeface.createFromAsset(myContext.getAssets(), "FONT.TTF");
>
> holder.image=(ImageView)vi.findViewById(R.id.image);
> vi.setTag(holder);
>
> }
> else
> holder=(ViewHolder)vi.getTag();
>
> holder.text.setText(Listdisplay.name[position]);
> holder.text1.setText(Listdisplay.count[position]);
>
> holder.image.setTag(data[position]);
> System.out.println("inside not
> null...........................................");
> imageLoader.DisplayImage(data[position], activity, holder.image);
> return vi;
> }
> }
>
> --
> 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 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