SHARE
TWEET

Untitled

a guest Jan 16th, 2019 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public void ClearImageViews() {
  2.   final ImageView image_a = (ImageView)findViewById(R.id.image_a);
  3.   image_a.setVisibility(View.INVISIBLE);
  4.  }
  5.    
  6. MainActivity mainActivity = new MainActivity();
  7.  mainActivity.ClearImageViews();
  8.    
  9. final ImageView image_a = (ImageView)findViewById(R.id.image_a);
  10.  image_a.setVisibility(View.INVISIBLE);
  11.    
  12. MainActivity.ClearImageViews()
  13.    
  14. class AnotherClass extends Activity{
  15.  
  16.  
  17.  OriginalClass o;
  18.  
  19.  public AnotherClass(OriginalClass oo){
  20.  
  21.    this.o = oo;
  22.  
  23.  
  24. }
  25.  
  26.  
  27. final ImageView image_a = (ImageView)this.o.findViewById(R.id.image_a);
  28.  
  29.                 // Use this.o.findViewById like above.
  30.  
  31. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top