프로젝트
GitHub에서 보기 Fluid Bottom Navigation
10clouds/FluidBottomNavigation-android
소개
Fluid Bottom Navigation library for Android
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalFluid Bottom Navigation

Sample
Installation
Use the JitPack package repository.
Add jitpack.io repository to your root build.gradle file:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Next add library to your project build.gradle file:
Gradle:
implementation 'com.github.10clouds:FluidBottomNavigation-android:{last_release_version}'
Usage
Place FluidBottomNavigation in your layout:
<com.tenclouds.fluidbottomnavigation.FluidBottomNavigation
android:id="@+id/fluidBottomNavigation"
android:layout_height="wrap_content"
android:layout_width="0dp" />
then set navigation items to component:
fluidBottomNavigation.items =
listOf(
FluidBottomNavigationItem(
getString(R.string.news),
ContextCompat.getDrawable(this, R.drawable.ic_news)),
FluidBottomNavigationItem(
getString(R.string.inbox),
ContextCompat.getDrawable(this, R.drawable.ic_inbox)),
FluidBottomNavigationItem(
getString(R.string.calendar),
ContextCompat.getDrawable(this, R.drawable.ic_calendar)),
FluidBottomNavigationItem(
getString(R.string.chat),
ContextCompat.getDrawable(this, R.drawable.ic_chat)),
FluidBottomNavigationItem(
getString(R.string.profile),
ContextCompat.getDrawable(this, R.drawable.ic_profile)))
Application with example is in app folder
Customization
You can customize component from XML layout file, using attributes:
app:accentColor="@color/accentColor"
app:backColor="@color/backColor"
app:iconColor="@color/iconColor"
app:iconSelectedColor="@color/iconSelectedColor"
app:textColor="@color/textColor"
or from Java/Kotlin code:
fluidBottomNavigation.accentColor = ContextCompat.getColor(this, R.color.accentColor)
fluidBottomNavigation.backColor = ContextCompat.getColor(this, R.color.backColor)
fluidBottomNavigation.textColor = ContextCompat.getColor(this, R.color.textColor)
fluidBottomNavigation.iconColor = ContextCompat.getColor(this, R.color.iconColor)
fluidBottomNavigation.iconSelectedColor = ContextCompat.getColor(this, R.color.iconSelectedColor)
Library made by Jakub Jodełka
관련 프로젝트 살펴보기
불러오는 중…