Example #1
0
 private void setEmptyMessage() {
   int icon = 0;
   int str = R.string.label_no_records_found;
   switch (mType) {
     case Inbox:
       icon = R.drawable.ic_action_inbox;
       str = R.string.message_inbox_all_read;
       break;
     case ToMe:
       icon = R.drawable.ic_action_user;
       str = R.string.message_tome_all_read;
       break;
     case ToDo:
       icon = R.drawable.ic_action_clipboard;
       str = R.string.message_todo_all_read;
       break;
     case Outbox:
       icon = R.drawable.ic_action_unsent_mail;
       str = R.string.message_no_outbox_message;
       break;
     case Archives:
       icon = R.drawable.ic_action_briefcase;
       break;
     case Group:
       icon = R.drawable.ic_action_social_group;
       str = R.string.message_no_group_message;
       break;
   }
   OControls.setImage(mView, R.id.emptyListIcon, icon);
   OControls.setText(mView, R.id.emptyListMessage, _s(str));
   if (mType != Type.Outbox) mView.findViewById(R.id.checkForNewData).setOnClickListener(this);
   else mView.findViewById(R.id.checkForNewData).setVisibility(View.GONE);
 }
Example #2
0
 public CreateAccount(OdooInstance instance, Boolean selfHosted) {
   mOdooInstance = instance;
   mSelfHosted = selfHosted;
   OControls.setGone(mView, R.id.instanceList);
   OControls.setVisible(mView, R.id.progressLoader);
   OControls.setText(
       mView,
       R.id.progressStatus,
       getActivity().getResources().getString(R.string.title_account_create));
 }
Example #3
0
 @Override
 protected void onPreExecute() {
   OControls.setText(
       mView, R.id.progressStatus, getResources().getString(R.string.title_database_create));
 }
Example #4
0
 @Override
 protected void onPreExecute() {
   OControls.setText(
       mView, R.id.progressStatus, getResources().getString(R.string.title_getting_instances));
 }