Android : Fix textview in center of LinearLayout
How can i fix my TextView in center of its parent LinearLayout. And a button in the gap b/w TextView & right edge of parent. (TextView must be in center). Please help me.  

    |--------------------------------------------------------|  <------Parent Linearlayout

    |                  MyTextviewInCenter          BackButton|  <------There should not be any gap b/w Button & its parent 
    |--------------------------------------------------------|
Android : Fix textview in center of LinearLayout
===

How can i fix my TextView in center of its parent LinearLayout. And a button in the gap b/w TextView & right edge of parent. (TextView must be in center). Please help me.  

    |--------------------------------------------------------|  <------Parent Linearlayout

    |                  MyTextviewInCenter          BackButton|  <------There should not be any gap b/w Button & its parent 
    |--------------------------------------------------------|