title: How Can I Set Margin with 'dp' programmatically?
body: <p>I'm trying to create design with programmatically. I'm using LayoutParams for details and I want to set Margin and I saw ...<strong>setMargins(0, 100, 0, 100)</strong> But I want to set with 'dp' like this:</p>
  
  <pre><code>&lt;TextView
            ...
            android:layout_marginLeft="10dp"
            .../&gt;
  </code></pre>
  
  <p>How can set margin with 'dp' ? </p>