📅  最后修改于: 2022-03-11 14:52:43.211000             🧑  作者: Mango
private Context context;
//in the Constructor, pass the context in the parametres
public TabAdapter(FragmentManager fm, Context context) {
super(fm);
this.context = context;
}
//and you can use it by:
context.getResources().