use of com.pnikosis.materialishprogress.ProgressWheel in project i2p.i2p-bote by i2p.
the class EmailListFragment method onCreateAuthenticatedView.
@Override
public View onCreateAuthenticatedView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
String folderName = getArguments().getString(FOLDER_NAME);
mFolder = BoteHelper.getMailFolder(folderName);
boolean isInbox = BoteHelper.isInbox(mFolder);
View v = inflater.inflate(isInbox ? R.layout.fragment_list_emails_with_refresh : R.layout.fragment_list_emails, container, false);
mEmailsList = (LoadingRecyclerView) v.findViewById(R.id.emails_list);
View empty = v.findViewById(R.id.empty);
ProgressWheel loading = (ProgressWheel) v.findViewById(R.id.loading);
mEmailsList.setLoadingView(empty, loading);
mNewEmail = (ImageButton) v.findViewById(R.id.promoted_action);
mNewEmail.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
startNewEmail();
}
});
if (isInbox) {
mSwipeRefreshLayout = (MultiSwipeRefreshLayout) v;
// Set up the MultiSwipeRefreshLayout
mSwipeRefreshLayout.setColorSchemeResources(R.color.primary, R.color.accent, R.color.primary, R.color.accent);
mSwipeRefreshLayout.setSwipeableChildren(R.id.emails_list);
mSwipeRefreshLayout.setOnRefreshListener(this);
}
return v;
}
use of com.pnikosis.materialishprogress.ProgressWheel in project Notes by lguipeng.
the class ProgressDialog method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
View view = LayoutInflater.from(getContext()).inflate(R.layout.dialog_progress, null);
setView(view);
ProgressWheel wheel = (ProgressWheel) view.findViewById(R.id.progress_wheel);
wheel.spin();
super.onCreate(savedInstanceState);
}
use of com.pnikosis.materialishprogress.ProgressWheel in project i2p.i2p-bote by i2p.
the class AddressBookFragment method onCreateAuthenticatedView.
@Override
public View onCreateAuthenticatedView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.fragment_list_contacts, container, false);
mContactsList = (LoadingRecyclerView) v.findViewById(R.id.contacts_list);
View empty = v.findViewById(R.id.empty);
ProgressWheel loading = (ProgressWheel) v.findViewById(R.id.loading);
mContactsList.setLoadingView(empty, loading);
mPromotedActions = v.findViewById(R.id.promoted_actions);
ImageButton b = (ImageButton) v.findViewById(R.id.action_new_contact);
b.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
startNewContact();
}
});
b = (ImageButton) v.findViewById(R.id.action_scan_qr_code);
b.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
startScanQrCode();
}
});
return v;
}
use of com.pnikosis.materialishprogress.ProgressWheel in project i2p.i2p-bote by i2p.
the class IdentityListFragment method onCreateAuthenticatedView.
@Override
public View onCreateAuthenticatedView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.fragment_list_identities, container, false);
mIdentitiesList = (LoadingRecyclerView) v.findViewById(R.id.identities_list);
View empty = v.findViewById(R.id.empty);
ProgressWheel loading = (ProgressWheel) v.findViewById(R.id.loading);
mIdentitiesList.setLoadingView(empty, loading);
mNewIdentity = v.findViewById(R.id.action_new_identity);
mNewIdentity.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
startNewIdentity();
}
});
return v;
}
Aggregations