title: Dynamically put textview above another view in relativelayout android
body: <p>Hi by doing java code i have done successfully add textview in relative layout like BOTTOM|RIGHT</p>
  
  <p>but i want to put textview above bottom bar layout </p>
  
  <p>here is the image
   <img src="https://i.stack.imgur.com/uHAXC.png" alt="enter image description here"></p>
  
  <p>here u can see that there is a textview which has white background image and its back it has black bottom baar i want to put textview above's bottom bar</p>
  
  <p>Below is my java code</p>
  
  <pre><code> LinearLayout bottomBar = (LinearLayout)findViewById(R.id.bottomBar);
      RelativeLayout.LayoutParams params1 = new RelativeLayout.LayoutParams(150, 70);
      params1.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM, RelativeLayout.TRUE);
      params1.addRule(RelativeLayout.ALIGN_PARENT_RIGHT, RelativeLayout.TRUE);
      params1.addRule(RelativeLayout.ABOVE, bottomBar.getId());
      butAddText.setLayoutParams(params1);
  </code></pre>
  
  <p>By doing this i have added bottom left but last two lines is not working i can not add textview above the bottom bar..</p>
  
  <p>can any body help me please</p>