标签:
使用fragmenttabhost后,子fragment怎么获取ID?怎么用getSharedPreferences
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View parentView = inflater.inflate(R.layout.fragment1, container, false); SharedPreferences pre = getActivity().getSharedPeferences(CFG,0); //getSharedPeferences("myinfo",Context.MODE_PRIVATE); return parentView; }
使用fragmenttabhost后,子fragment怎么获取ID?怎么用getSharedPreferences
标签:
原文地址:http://www.cnblogs.com/achengmu/p/4427865.html