title: what equals app:layout_anchorGravity="bottom|right|end" in Java?
body: <p>In xml, I can use <code>app:layout_anchorGravity="bottom|right|end"</code> as an attribute of a view. But now I want to create a view programmatically. What I know is like this:</p>
  
  <pre><code>CoordinatorLayout.LayoutParams params = new CoordinatorLayout.LayoutParams(CoordinatorLayout.LayoutParams.WRAP_CONTENT, CoordinatorLayout.LayoutParams.WRAP_CONTENT);
  params.anchorGravity = Gravity.BOTTOM;
  </code></pre>
  
  <p>But how can I add <code>right</code> and <code>end</code> ?</p>