android刷新片段的UI保存在视图寻呼机中

时间:2014-04-10 07:44:07

标签: android android-fragments

public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
        logger = LogWrapper.getInstance();
        logger.debugLog(TAG+"onCreateView", "On create View Start");
        parentActivity = (CoreWorkFlowActivity) getActivity();
        mView = inflater.inflate(R.layout.summary_layout, container, false);
        this.inflater = inflater;

        activateSystem = (Button)mView.findViewById(R.id.activate_system);
        ivretestAll = (Button)mView.findViewById(R.id.ivretest);
        activateSystem.setOnClickListener(this);
        ivretestAll.setOnClickListener(this);
        explistView = (ExpandableListView)mView.findViewById(R.id.explistview);
        explistView.setGroupIndicator(null);

        hiddenlayout = (RelativeLayout)mView.findViewById(R.id.hiddenLayout);
        buttonlayout = (RelativeLayout)mView.findViewById(R.id.buttonlayout);
        prepareListData();

        explistAdapter = new CustomExpandableListAdapter(parentActivity, listDataHeader, listDataChild);

        // setting list adapter
        explistView.setAdapter(explistAdapter);
        explistAdapter.notifyDataSetChanged();
        return mView;}

当我浏览一个viewpager时,片段的用户界面没有刷新。请给我一个解决方案

0 个答案:

没有答案