пятница, 23 сентября 2011 г.

Парсинг xml. хозяйке на заметку

Если при парсинге xml средствами Android получаем XmlPullParserException "PI must not start with xml", причиной может послужить вот что

среда, 21 сентября 2011 г.

कस्टम font in two steps

1.
put font file to assets/fonts/myfont.ttf

2.

Typeface tf = Typeface.createFromAsset(getAssets(), "fonts/myfont.ttf");
TextView text = (TextView)findViewById(R.id.my_text);
text.setTypeface(tf);

That's all.

P.S. कस्टम is a result of auto replacement of blogger or my browser. The original word is "custom" :)