Search in sources :

Example 1 with RemoveCloudAccountDialogFragment

use of com.battlelancer.seriesguide.ui.dialogs.RemoveCloudAccountDialogFragment in project SeriesGuide by UweTrottmann.

the class CloudSetupFragment method onCreateView.

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    View v = inflater.inflate(R.layout.fragment_cloud_setup, container, false);
    textViewDescription = (TextView) v.findViewById(R.id.textViewCloudDescription);
    textViewUsername = ButterKnife.findById(v, R.id.textViewCloudUsername);
    textViewWarning = ButterKnife.findById(v, R.id.textViewCloudWarnings);
    progressBar = (ProgressBar) v.findViewById(R.id.progressBarCloud);
    buttonAction = (Button) v.findViewById(R.id.buttonCloudAction);
    buttonRemoveAccount = ButterKnife.findById(v, R.id.buttonCloudRemoveAccount);
    buttonRemoveAccount.setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View v) {
            setProgressVisible(true);
            DialogFragment f = new RemoveCloudAccountDialogFragment();
            f.show(getFragmentManager(), "remove-cloud-account");
        }
    });
    updateViews();
    setProgressVisible(true);
    return v;
}
Also used : DialogFragment(android.support.v4.app.DialogFragment) RemoveCloudAccountDialogFragment(com.battlelancer.seriesguide.ui.dialogs.RemoveCloudAccountDialogFragment) RemoveCloudAccountDialogFragment(com.battlelancer.seriesguide.ui.dialogs.RemoveCloudAccountDialogFragment) View(android.view.View) TextView(android.widget.TextView)

Aggregations

DialogFragment (android.support.v4.app.DialogFragment)1 View (android.view.View)1 TextView (android.widget.TextView)1 RemoveCloudAccountDialogFragment (com.battlelancer.seriesguide.ui.dialogs.RemoveCloudAccountDialogFragment)1