Skip to content

rasoulmiri/QuickSettingsTilesDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Quick Settings Tiles Demo

Demo quick settings tiles in android 7+

alt text

#Usage

comment and uncomment code in onClick function in MyTileService.class

 @Override
    public void onClick() {
        super.onClick();
        Log.i("TileService", "onClick");

        //Start main activity but Quick Settings Panel still open
        startActivity(new Intent(this, MainActivity.class));

        //Start main activity and close Quick Settings Panel
        startActivityAndCollapse(new Intent(this, MainActivity.class));

        //update tile
        updateTileForOnOrOff();

        //update tile by Animation
        updateTileByAnimation();

        //show dialog
        generateDialogAndShow();

        //checking lock and if user enter password, run runnableForUnlock
        unlockAndRun(runnableForUnlock);
    }

About

Quick Settings Tiles Demo for android 7+

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages