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.widget.Button;

public class Main {
    /**
     * Update texts for map of textButton views.
     * @param views
     * @param texts
     */
    public static void uTextBtn(Map<Integer, Button> views, Map<Integer, String> texts) {
        for (Entry<Integer, Button> entry : views.entrySet()) {
            Button button = entry.getValue();
            button.setText(texts.get(entry.getKey()));
        }
    }
}