Changes

no edit summary
Line 1: Line 1: −
<pre style="color: black">
+
<pre class="header-style">
 
This trigger will display a floating button on the screen that can be clicked to activate a macro.
 
This trigger will display a floating button on the screen that can be clicked to activate a macro.
   Line 7: Line 7:  
</pre>
 
</pre>
   −
<pre style="color: Teal">
+
Please also see '''[https://macrodroidforum.com/wiki/index.php/Action:_Floating_Button_Configure Floating Button Configure action]'''
Supported configurations:
     −
Identifier:
+
'''Configuration options'''
 +
 
 +
* Identifier
 +
 
 +
<pre border-radius: 10px; padding: 10px;">
 
It is an id that will serve you later when you use the "Configure floating button" action to identify the button that will be configured in the same macro or another macro.
 
It is an id that will serve you later when you use the "Configure floating button" action to identify the button that will be configured in the same macro or another macro.
 +
</pre>
 +
 +
* Icon
   −
Icon:
+
<pre border-radius: 10px; padding: 10px;">
 
It allows you to use installed application icons, user icons (own images), macrodroid icons, as well as notification and material design.
 
It allows you to use installed application icons, user icons (own images), macrodroid icons, as well as notification and material design.
 +
</pre>
   −
Set background:
+
* Set background
 +
 
 +
<pre border-radius: 10px; padding: 10px;">
 
Use a background color below the icon.
 
Use a background color below the icon.
 +
</pre>
   −
Transparent background (checkbox):
+
* Transparent background
 +
 
 +
<pre border-radius: 10px; padding: 10px;">
 
Show the floating button without a background color.
 
Show the floating button without a background color.
 +
</pre>
   −
Padding:
+
* Padding
 +
 
 +
<pre border-radius: 10px; padding: 10px;">
 
Change a larger or smaller icon padding.
 
Change a larger or smaller icon padding.
 +
</pre>
   −
Opacity:
+
* Opacity
 +
 
 +
<pre border-radius: 10px; padding: 10px;">
 
Change the opacity, higher or lower.
 
Change the opacity, higher or lower.
 +
</pre>
   −
Normal or Small:
+
* Normal or Small
 +
 
 +
<pre border-radius: 10px; padding: 10px;">
 
Toggling between 2 different sizes of floating button.
 
Toggling between 2 different sizes of floating button.
 +
</pre>
 +
 +
* Disable macro/trigger on remove
   −
Disable macro on remove:
+
<pre border-radius: 10px; padding: 10px;">
This is the default floating button option when you drag the floating button to the trash (it will appear when you start dragging the button) you can also toggle it by just deactivating the trigger (can be re-enabled manually or with the "set floating button action ").
+
This allows you to define the desired behaviour when you drag the floating button to the recycle bin
 +
(it will appear when you start dragging the button).
   −
Force location when enabled:
+
By default the entire macro will be disabled when dragging to the bin, but you can change the option to disable only the trigger if preferred.
Whenever this box is checked the floating button appears at the specified coordinates otherwise it will appear at the center of the screen.
   
</pre>
 
</pre>
   −
'''Example Usage:'''
+
* Force location when enabled
<pre style="color: Red">
+
 
Floating button
+
<pre border-radius: 10px; padding: 10px;">
 +
Whenever this box is checked the floating button will appear at the specified coordinates, otherwise it will appear at it's previous location when it was last hidden/removed.
 +
 
 +
You can use magic text to define the location when enabled (use a numerical variable).
 
</pre>
 
</pre>
<pre style="color: #3498DB">
  −
Voice search.
  −
</pre>
  −
<pre style="color: Green">
  −
Device unlocked
  −
</pre>
  −
  −
When you touch the floating button it will start a voice search, only if the phone is unlocked.