Example usage for android.preference Preference Preference

List of usage examples for android.preference Preference Preference

Introduction

In this page you can find the example usage for android.preference Preference Preference.

Prototype

public Preference(Context context, AttributeSet attrs) 

Source Link

Document

Constructor that is called when inflating a Preference from XML.

Usage

From source file:com.adam.aslfms.UserCredsListActivity.java

private void loadUserCredsList() {
    NetApp[] napps = NetApp.values();// w w w . j  a  va 2s  . c  o m
    for (NetApp napp : napps) {
        Preference pref = new Preference(this, null);
        mUserCredsPrefToAppMap.put(pref, napp);
        mUserCredsAppToPrefMap.put(napp, pref);
        mUserCredsList.addPreference(pref);
    }
}