Assertive Touch Android

Additional

Language
Java
Version
1.2.0 (Dec 19, 2017)
Created
Nov 30, 2017
Updated
Dec 20, 2017
Owner
Mohamed Mo'men (mmoamenn)
Contributor
Mohamed Mo'men (mmoamenn)
1
Activity
Badge
Generate
Download
Source code
APK file

Show card

Assertive Touch in Android

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

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();