#

 

Android Java: Text aus einer Resource File lesen

 

 

@Override
public void onConfigureTab(@NonNull TabLayout.Tab tab, int position) {

   
int resID=getResources().getIdentifier("tab_text_" + position,"string",getPackageName());
   
String sTabText=getString(resID);
    tab.setText(sTabText);
}

 

 

 

Mobile

.

0123movie.net