FloatingShortcutButton_Android

Introduction: Android library shows a floating button in the app screen, you can drag and drop the button in any place of the screen and on press navigate to any place in the app.
More: Author   ReportBugs   
Tags:

Assertive Touch is a library that lets you create a floating button which shows in your app screens. You can drag and drop it anywhere in your application and you can configure it on runtime to navigate through your predefined shortcuts.

Sample

Floating Shortcut button

Installing

Add it in your root build.gradle at the end of repositories:

     allprojects {
         repositories {
             ...
             maven { url 'https://jitpack.io' }
         }
     }

Step 2. Add the dependency

     dependencies {
         compile 'com.github.mmoamenn:Assertive-Touch:1.2.0'
     }

How to use in your application

Add the following few lines in your application class.

public class DemoApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();

        ATButton.setup(this) ;
        ATButton.getInstance().setTargetClass(HelpActivity.class);
        ATButton.getInstance().setIcon(R.drawable.help);
        ATButton.getInstance().setBackgroundColor(Color.WHITE);
      }

To start showing the floating button through the application, use the following line.

 ATButton.getInstance().show();

To make the floating button disppear through the application, use the following line.

  ATButton.getInstance().hide();

Change Button size

  ATButton.getInstance().setSize(height,width);

Check button visibility

  ATButton.getInstance().isViewAttached();
Support Me
Apps
About Me
Google+: Trinea trinea
GitHub: Trinea