@Override protected void initComponents() { lvDeprecatedHosts = (ListView) innerView.findViewById(R.id.lvDeprecatedHosts); gvDeprecatedHosts = (GridView) innerView.findViewById(R.id.gvDeprecatedHosts); progressDeprecated = (DataProgressBar) innerView.findViewById(R.id.progressDeprecated); adapter = new HostsAdapter(getActivity(), lstDeprecated, hSelectHost, false, false); if (lvDeprecatedHosts != null) { lvDeprecatedHosts.setAdapter(adapter); } if (gvDeprecatedHosts != null) { gvDeprecatedHosts.setAdapter(adapter); } loader = new HostsLoader(getActivity()); loader.registerListener(0, this); }
private void doStartLoad() { progressDeprecated.setAppName(getString(R.string.loading)); progressDeprecated.setVisibility(View.VISIBLE); loader.startLoading(); }