package com.huaqin.punan.fragment;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;

public class FragmentActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_fragment);
    }


    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.fragment, menu);
        return true;
    }
    
}

@@ -328,16 +328,25 @@
 gment);%0A
+        %0A
     %7D%0A%0A%0A

add Fragment demo