title: View holder Class in Android
body: <p>This is a basic question. I was going through an official video by google regarding android. In it they used Viewholder class as </p>
  
  <p>static class Viewholder{
      ImageView image;
      Textview text;
  } </p>
  
  <p>Would it be right to declare this class as static or view holder is used as static inner class. </p>
  
  <p>I think suppose if its top level class then compiler will throw error while using static keyword with top level class. </p>