Trying to create header and footer for android app
<p>I have created a header and footer. In the header I inserted a menu button with a click event of starting another activity. </p>

<p>How can i get the body frame by fixing header and in the same activity. 
The java code for this file is</p>

<pre><code>public class DigitalFoodMenu extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    setContentView(R.layout.activity_digital_food_menu);    

}
public void Menu(View view)
{
    Intent intent1=new Intent(getBaseContext(),Menuone.class);
    startActivity(intent1);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
    // Inflate the menu; this adds items to the action bar if it is present.
    getMenuInflater().inflate(R.menu.digital_food_menu, menu);
    return true;
 }

     }
</code></pre>
