Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

getresources in adapter android

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().
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #getresources #adapter #android
ADD COMMENT
Topic
Name
4+8 =