Code example for FragmentManager

Methods: executePendingTransactions

0
    //是在UI更新完成后的动作 
    public void finishUpdate(ViewGroup container) {
        if (mTransaction != null) {
            mTransaction.commitAllowingStateLoss();
            mTransaction = null;
            mFragmentManager.executePendingTransactions();
        } 
    }  
    public Fragment getItem(int position){
       return  mFragmentList.get(position);
    } 
    public long getItemId(int position) {
        return position;
    } 
    protected  String getTag(int position){
        return mFragmentList.get(position).getText();
    } 
 
}