title: Relative layout params in kotlin
body: <p>I am trying to set <code>relative layout params</code> programmatically. I can set <code>params</code> using java but not know how to accomplish using <strong>kotlin</strong>. So what I have tried is as follows :</p>
  
  <p><strong>MainActivity class</strong></p>
  
  <pre><code>    class MainActivity : AppCompatActivity() {
  
      lateinit var context : Context
      override fun onCreate(savedInstanceState: android.os.Bundle?) {
          super.onCreate(savedInstanceState)
          setContentView(R.layout.activity_main)
          context=this
          asdasd.text="finaly done";
     var  param:RelativeLayout.LayoutParams =//don't know what to do here
              val i:Int=1
              var temp :TextView = TextView(this);
              temp.id=i              
              temp.layoutParams = param ;
              temp.text= "TextView"+i
              Log.e(ContentValues.TAG, "onCreate: " + i)
  
  
      }
  }
  </code></pre>
  
  <p>Any help is appreciated!</p>