我有一個包含textview的小部件佈局。我想將marathi文本設置爲該textview。 我正在嘗試在屏幕上顯示馬拉蒂新聞的股票小部件。問題是我無法將marathi字體設置爲remoteview。任何幫助?在此先感謝Android中Textview的Marathi字體支持
編輯:
這裏是我的代碼
RemoteViews remoteViews = new RemoteViews(this .getApplicationContext().getPackageName(), R.layout.widget_layout);
// Set the text
remoteViews.setTextViewText(R.id.txt_marqee, stringBuffer);
,這是我的遠程視窗充氣widget_layout。這個佈局包含我用作ticker的textview。我想將devnagari字體設置爲remoteview。任何幫助?
拉克什,如果你有主屏幕小部件然後自定義字體,不得使用在主屏幕中,請使用inbuild字體或爲ImageView生成位圖。 – 2012-03-30 09:47:03