title: How to set ImageView in the center of layout from code?
body: <p>I try next</p>
  
  <pre><code>LinearLayout.LayoutParams b = new LinearLayout.LayoutParams(
                          LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
                  b.gravity =Gravity.CENTER;
  
                  ivOne.setLayoutParams(b);
  </code></pre>
  
  <p>But this does no work, image view in the left side of layout</p>