2013-09-24 64 views

回答

0

發送頁面參數[在這裏輸入圖像描述束ARGS:

public static mFragment create(int param) { 
    mFragment fragment = new mFragment(); 
    Bundle args = new Bundle(); 
    args.putInt("paramname", param); 
    fragment.setArguments(args); 
    return fragment; 
} 

然後讀:

mParam = getArguments().getInt("paramname"); 
相關問題