# FloatingActionButton **Repository Path**: HarmonyOS-tpc/FloatingActionButton ## Basic Information - **Project Name**: FloatingActionButton - **Description**: Yet another implementation of Floating Action Button for HMOS with lots of features. - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 1 - **Created**: 2021-04-01 - **Last Updated**: 2023-04-17 ## Categories & Tags **Categories**: harmony **Tags**: None ## README ## FloatingActionButton ## Introduction Yet another implementation of Floating Action Button for HMOS with lots of features. > ### Screenshots ### Features - Option to set custom **normal**/**pressed** colors - Option to set custom animations - Option to set custom icon drawable - Support for **normal** `56dp` and **mini** `40dp` button sizes - Custom FloatingActionMenu icon animations - Option to expand menu up and down - Option to show labels to the left and to the right of the menu - Option to show circle progress on `FloactinActionButton` - Option to add button to the `FloatingActionMenu` programmatically - Option to dim the `FloatinActionMenu`'s background - *Option to remove all buttons from the `FloatingActionMenu`* - *Option to set a label for the `FloatingActionMenu`'s button* ### Below features are not supported now - Ripple effect - Option to set custom **ripple** color - Option to set custom shadow color and offsets - Option to disable shadow for buttons and (or) labels ## Usage Instructions ### Floating action Button Add the `com.github.clans.fab.FloatingActionButton` to your layout XML file. ```XML ``` ### Floating action menu ```XML ``` ## Installation Instructions ``` Method 1: Generate har package from library and add it to lib folder. add following code to gradle of entry implementation fileTree(dir: 'libs', include: ['*.jar', '*.har']) Method 2: allprojects{ repositories{ mavenCentral() } } implementation 'io.openharmony.tpc.thirdlib:floatingactionbutton:1.0.0' ``` ## License Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.