Hi Android developer groups! Use the Typeface with holder means properly get output, i mean here * holder.text.setTypeface(tf);* , but how can set the Typeface here * holder.text .setText(Listdisplay.name[position]);*
i mean how can use setTypeface with holder and setText? See below code public View getView(int position, View convertView, ViewGroup parent) { View vi=convertView; ViewHolder holder; Typeface tf=Typeface.createFromAsset(context.getAssets(), "font.ttf"); if(convertView==null) { View vi; TextView text; vi = inflater.inflate(R.layout.item, null); holder.text=(TextView)vi.findViewById(R.id.text); * holder.text.setTypeface(tf);* vi.setTag(holder); } else holder=(ViewHolder)vi.getTag(); * holder.text.setText(Listdisplay.name[position]);* return vi; } Thanks, suba -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en