public ReservationAdapter(Context context, Cursor cursor)
 {
     Log.d("smali", "Lcom/samsung/sec/mtv/ui/channelguide/MtvUiFragReservationList$ReservationAdapter;-><init>(Lcom/samsung/sec/mtv/ui/channelguide/MtvUiFragReservationList;Landroid/content/Context;Landroid/database/Cursor;)V");
     this$0 = MtvUiFragReservationList.this;
     super(context, cursor);
     int ai[] = new int[2];
     ai[0] = 2;
     ai[1] = 2;
     mIcon = (Drawable[][])Array.newInstance(android/graphics/drawable/Drawable, ai);
     mInflater = (LayoutInflater)context.getSystemService("layout_inflater");
     mIcon[1][0] = context.getResources().getDrawable(0x7f0200c0);
     mIcon[0][0] = context.getResources().getDrawable(0x7f0200bd);
     mIcon[1][1] = context.getResources().getDrawable(0x7f0200c1);
     mIcon[0][1] = context.getResources().getDrawable(0x7f0200be);
 }
示例#2
0
  public IconHolder(Context context, boolean useThumbs, boolean grid) {
    super();
    this.mContext = context;
    this.mUseThumbs = useThumbs;
    this.mRequests = new HashMap<ImageView, String>();
    this.mIcons = new HashMap<String, Bitmap>();
    this.mAppIcons =
        new LinkedHashMap<String, Bitmap>(MAX_CACHE, .75F, true) {
          private static final long serialVersionUID = 1L;

          @Override
          protected boolean removeEldestEntry(Entry<String, Bitmap> eldest) {
            return size() > MAX_CACHE;
          }
        };
    this.mAlbums = new HashMap<String, Long>();
    this.grid = grid;
    Resources res = mContext.getResources();
    int dp = 50;
    if (grid) {
      dp = 150;
    }
    px = (int) (dp * (res.getDisplayMetrics().densityDpi / 160));
  }
 public AcctInfoAdapter(Context mContext, ServiceAcctInfo[] accts) {
   context = mContext;
   acctList = accts;
   msgsetNames = context.getResources().getStringArray(R.array.acct_types);
 }