title: kotlin -access view from non activity class
body: <p>I've a class that needs to be include in lots of my activities , so I've made a class that needs to access the view . 
  this is my code :</p>
  
  <pre><code>class Toolbar{
  private lateinit var typeface:Typeface;
  private lateinit var context:Context
  private lateinit var tvToolbar:TextView;
  
  fun MakeToolbar(context:Context, title:String){
      this.context=context
      init();
  }
  
  private fun init() {
      typeface= Func.getTypeFace(context)!!
  
      tvToolbar=((Activity)context).findViewById 
  
  }
  </code></pre>
  
  <p>the problem is , in java I can easily access the context and use findViewById to get my view , Buy I can't do it in kotlin and it couldn't find the view . </p>
  
  <p>How can I access a view in a non activity class? </p>