title: Android: Custom border for FrameLayout
body: <p>I am trying to add a custom border to a <code>framelayout</code>. The <code>framelayout</code> is used as container for the fragment. Thus I want to display fragment with a border. The border should be external to framelayout and should not consume the space inside of framelayout. And it should adjust with change in screen size.</p>
  
  <p><img src="https://i.stack.imgur.com/QoLa7.jpg" alt="enter image description here"></p>
  
  <p>What i can think right now is some sort of custom ViewGroup, add ImageView for border. Use image processing to get the inside area of imageview and in that area inflate a frame layout. </p>
  
  <p>I am looking for some easy way out.</p>