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に対して未定義です"
どうすればこれを解決できますか?