A simple Floating Action Button that shows an anchored Navigation View
A simple Floating Action Button that shows an anchored Navigation View
A simple Floating Action Button that shows an anchored Navigation View and was inspired by Menu Material Fixed created by Tommaso Poletti
Include the library in your build.gradle
dependencies{
compile 'com.github.andremion:floatingnavigationview:1.3.0'
}or in your pom.xml if you are using Maven
com.github.andremion
floatingnavigationview
1.3.0
aar
...
The menu resource to inflate and populate items from ``
Layout resource to inflate as the header ``
Item text customizations
If menu must be drawn below the FAB ``
The recommended way to customize the background color is by using the app:backgroundTint attribute in xml or setBackgroundTintList in Java
mNavigationView.setBackgroundTintList(ColorStateList.valueOf(Color.parseColor("#009688")));You can also set the button icon color according to the theme by setting the android:tint to a theme attribute:
See more at the sample
Copyright 2019 André Mion
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.No open issues yet, or sync has not completed.