Пример #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);
 }
Пример #2
0
 @Override
 protected void onPostExecute(Void result) {
   super.onPostExecute(result);
   if (bmp != null) {
     View mView = mGridView.getChildAt(view_pos);
     OControls.setImage(mView, image_view, bmp);
   }
 }