2023年4月16日

android 資源字串處理

 


import android.content.Context;
import android.content.res.Resources;

public class String_util {

private Resources res;
public String_util(Context context){
res = context.getResources();

}
public String get_play(){
return res.getString(R.string.play);
}
public String get_pause(){
return res.getString(R.string.pause);
}

}

沒有留言:

張貼留言