public class Class_UniversityDialog extends Dialog {
public Class_UniversityDialog(Context context) {
super(context);
}
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.layout_university_info);
Typeface face = Typeface.createFromAsset(getAssets(), "tahoma.ttf");
//To Layout Topic persian
TextView txt_Title = (TextView) findViewById(R.id.lbl_LayoutTopic);
txt_Title.setTypeface(face);
String newText = (String) txt_Title.getText().toString();
txt_Title.setText(PersianReshape.reshape(newText));
}
}
在我的代码中,eclipse 说 getAssets() :“方法 getAssets() 对于 Class_UniversityDialog 类型未定义”
我该如何解决这个问题?