title: How to apply style to dynamically created EditText in android?
body: <p>I have one Button, and <strong>on every click of that button I want to create new EditText Dynamically.</strong></p>
  
  <p>Now my question is , I have one style in <strong>style.xml</strong> for EditText. Now how can I apply that style  to this dynamically created EditText?</p>
  
  <p><strong>My Code for EditText is:</strong></p>
  
  <pre><code>    List&lt;EditText&gt; allEdsLabReport ;
      String[] edsLabReport;
      EditText LabReportNm;
  
      AddMoreLabReport.setOnClickListener(new View.OnClickListener() 
          {
             @Override
             public void onClick(View v) 
             {
  
             LabReportNm = new EditText(CaseReport.this);
  
            allEdsLabReport.add(LabReportNm);
  
            TableLayout tbl2 = (TableLayout)findViewById(R.id.TableLayoutLabReport);
            TableRow tr1 = new TableRow(CaseReport.this);
  
            tr1.addView(LabReportNm);
            tbl2.addView(tr1);
  
        }
          });
  </code></pre>