title: Android RelativeLayout align center of one view on top right corner of another view
body: <p>I have experience with RelativeLayout but I've never run across a way to solve the problem I am presented with (aside from hard coding margin values, which I want to avoid.)</p>
  
  <p>I want to try to create something like the following image in a RelativeLayout:</p>
  
  <p><img src="https://i.stack.imgur.com/mfVIo.png" alt="enter image description here"></p>
  
  <p>The box is its own View and I want to get the View that contains the orange circle to be centered on the top right corner of the View that contains the blue box. </p>
  
  <p>I tried with <code>android:alignTop="boxView"</code> and <code>android:alignRight="boxView"</code> but that put my orange circle completely within my box. I want it to be so that the circle is centered above the top right corner of the box.</p>
  
  <p>Anybody know how I can get that outcome with a RelativeLayout? preferably without having to hardcode margins away from the edge of the screen for the orange dot view.</p>