Example usage for android.util ArrayMap ArrayMap

List of usage examples for android.util ArrayMap ArrayMap

Introduction

In this page you can find the example usage for android.util ArrayMap ArrayMap.

Prototype

public ArrayMap(ArrayMap<K, V> map) 

Source Link

Document

Create a new ArrayMap with the mappings from the given ArrayMap.

Usage

From source file:com.appsimobile.appsii.compat.MapCompat.java

public static <K, V> Map<K, V> createMap(int capacity) {
    if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
        return new ArrayMap<>(capacity);
    }// w  ww.  j  a v a2s  .  co  m
    return new android.support.v4.util.ArrayMap<>(capacity);
}

From source file:com.androidinspain.deskclock.FragmentTabPagerAdapter.java

FragmentTabPagerAdapter(DeskClock deskClock) {
    mDeskClock = deskClock;
    mFragmentCache = new ArrayMap<>(getCount());
    mFragmentManager = deskClock.getFragmentManager();
}