Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import java.util.Map;
import java.util.Map.Entry;

import android.graphics.Bitmap;

import android.widget.ImageView;

public class Main {
    /**
     * Set bitmaps for map of imageViews.
     * @param views
     * @param bitmaps
     * @param convert
     */
    public static void setBitmaps(Map<Integer, ImageView> views, Map<String, Bitmap> bitmaps,
            Map<Integer, String> convert) {
        for (Entry<Integer, ImageView> entry : views.entrySet()) {
            Bitmap bm = bitmaps.get(convert.get(entry.getKey()));
            entry.getValue().setImageBitmap(bm);
        }
    }
}