这是我的代码
public class Blogs extends Activity{
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.seriously);
String line = "";
StringBuilder finalString = new StringBuilder();
InputStream iStream = getResources().openRawResource(R.raw.minzelostam);
BufferedReader bReader = new BufferedReader (new InputStreamReader(iStream));
try {
while ((line = bReader.readLine())!=null){
finalString.append(line);
}
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
TextView tv = (TextView)findViewById(R.id.tvLongText);
tv.setText(finalString);
}
}
这是屏幕上的结果
enter link description here http://i58.tinypic.com/2d8p27c.jpg
问题在于用希伯来语写作,我只是不知道如何解决它。
答案 0 :(得分:0)
答案 1 :(得分:0)
package com.dolev.jinjer;
公共类博客扩展了活动{
Typeface tf;
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.seriously);
tf = Typeface.createFromAsset(getAssets(), "DroidSansHebrew.ttf");
String line = "";
StringBuilder finalString = new StringBuilder();
InputStream iStream = getResources().openRawResource(R.raw.minzelostam);
BufferedReader bReader = new BufferedReader (new InputStreamReader(iStream));
try {
while ((line = bReader.readLine())!=null){
finalString.append(line);
}
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
TextView tv = (TextView)findViewById(R.id.tvLongText);
tv.setTypeface(tf);
tv.setText(finalString);
}
}
仍在努力工作:(