Search in sources :

Example 1 with ShortcutPickHelper

use of com.android.settingslib.cm.ShortcutPickHelper in project android_frameworks_base by crdroidandroid.

the class LockscreenShortcutsActivity method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.lockscreen_shortcuts);
    getActionBar().setDisplayHomeAsUpEnabled(true);
    mPicker = new ShortcutPickHelper(this, this);
    mShortcutHelper = new LockscreenShortcutsHelper(this, this);
    ColorMatrix cm = new ColorMatrix();
    cm.setSaturation(0);
    mFilter = new ColorMatrixColorFilter(cm);
    ImageView unlockButton = (ImageView) findViewById(R.id.middle_button);
    mDefaultTintList = unlockButton.getImageTintList();
    createActionList();
    initiateViews();
    updateDrawables();
}
Also used : ColorMatrixColorFilter(android.graphics.ColorMatrixColorFilter) ShortcutPickHelper(com.android.settingslib.cm.ShortcutPickHelper) ColorMatrix(android.graphics.ColorMatrix) ImageView(android.widget.ImageView)

Example 2 with ShortcutPickHelper

use of com.android.settingslib.cm.ShortcutPickHelper in project android_frameworks_base by ResurrectionRemix.

the class LockscreenShortcutsActivity method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.lockscreen_shortcuts);
    getActionBar().setDisplayHomeAsUpEnabled(true);
    mPicker = new ShortcutPickHelper(this, this);
    mShortcutHelper = new LockscreenShortcutsHelper(this, this);
    ColorMatrix cm = new ColorMatrix();
    cm.setSaturation(0);
    mFilter = new ColorMatrixColorFilter(cm);
    ImageView unlockButton = (ImageView) findViewById(R.id.middle_button);
    mDefaultTintList = unlockButton.getImageTintList();
    createActionList();
    initiateViews();
    updateDrawables();
}
Also used : ColorMatrixColorFilter(android.graphics.ColorMatrixColorFilter) ShortcutPickHelper(com.android.settingslib.cm.ShortcutPickHelper) ColorMatrix(android.graphics.ColorMatrix) ImageView(android.widget.ImageView)

Aggregations

ColorMatrix (android.graphics.ColorMatrix)2 ColorMatrixColorFilter (android.graphics.ColorMatrixColorFilter)2 ImageView (android.widget.ImageView)2 ShortcutPickHelper (com.android.settingslib.cm.ShortcutPickHelper)2