1

crashed settypeface in listactivity

view story
linux-howto

http://stackoverflow.com – this code worked Correctly in Activity and change font to BMitraBd TextView tv = (TextView) findViewById(R.id.name) ; Typeface tf = Typeface.createFromAsset(getAssets(), "fonts/BMitraBd.ttf"); tv.setTypeface(tf); But in ListActivity same code crashes the app. public class AndroidXMLParsingActivity extends ListActivity { // All static variables static final String URL = "http://www.linker.blogsky.com/rss/?format=xml"; // XML node keys static final String KEY_ITEM = "item"; // parent node static final String KEY_ID = "id"; static final String KEY_NAME = "title"; static final String KEY_COST (HowTos)