我的問題是,如何更改字體在安卓自定義列表視圖中的印地文我使用此代碼 字體hindiFont = Typeface.createFromAsset(getAssets(),「fonts/DroidHindi.ttf 「); //添加的菜單項到ListView控件如何設置印地文字體在列表視圖
ListAdapter adapter = new SimpleAdapter(this, menuItems,
R.layout.list_item,
new String[] { KEY_NAME, KEY_DESC, KEY_COST }, new int[] {
R.id.name, R.id.desciption, R.id.cost });
// Typeface tf = Typeface.createFromAsset(getAssets(), "fonts/DroidHindi.ttf");
setListAdapter(adapter);
// selecting single ListView item
ListView lv = getListView();
請幫助我。 在此先感謝!!!!!!!!!
我重寫了getView方法,但無法work.please幫助我。在SimpleAdapter類的