title: Show custom view in all activities
body: <p>I want to show a view that should be shown in all activities. I don't know how to inherit views in android. What i did is below, its showing the view in first activity but not in all activities. This pease of code is form my BaseActivity, please help</p>
  
  <pre><code>LayoutInflater inflater = getLayoutInflater();
  View child = inflater.inflate(R.layout.custom_error, null);
  
  RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams( LayoutParams.WRAP_CONTENT , LayoutParams.WRAP_CONTENT );
  params.addRule(RelativeLayout.ALIGN_PARENT_TOP);
  
  addContentView(child, params);
  </code></pre>