10clouds / fluidbottomnavigation-android Goto Github PK
View Code? Open in Web Editor NEWFluid Bottom Navigation library for Android
Home Page: https://10clouds.com/
License: MIT License
Fluid Bottom Navigation library for Android
Home Page: https://10clouds.com/
License: MIT License
Is there any way to use this with androidx integration?
change animation if it's possible, changing select or deselect animation easily
Hi there, I was testing your library and really like it. I was just wondering if there's a way to have an attribute for keeping titles visible by default while navigating through tabs. I'd really appreciate it. Thanks in advance for any response!
There is one method name drawItemView
in FluidBottomNavigation class. Just add below code.
with(backgroundContainer){
setBackgroundColor(backColor)
}
first selecting icon will hide when i click another select icon on android 5.0
please fix this
I have imported this library and write down java code for fluidBottomNavigation. But it does not show in activity after the run.Below is my code.
fluidBottomNavigation = findViewById(R.id.fluidBottomNavigation);
fluidBottomNavigation.setAccentColor(ContextCompat.getColor(this, R.color.colorPrimaryDark));
fluidBottomNavigation.setBackColor(ContextCompat.getColor(this, R.color.colorPrimaryDark));
fluidBottomNavigation.setTextColor(ContextCompat.getColor(this, R.color.colorPrimaryDark));
fluidBottomNavigation.setIconColor(ContextCompat.getColor(this, R.color.colorPrimary));
fluidBottomNavigation.setIconSelectedColor(ContextCompat.getColor(this, R.color.color_green));
fluidBottomNavigationItems.add(new FluidBottomNavigationItem(
getString(R.string.str_add_client),
ContextCompat.getDrawable(this, R.drawable.ic_call)));
fluidBottomNavigationItems.add(new FluidBottomNavigationItem(
getString(R.string.str_add_client),
ContextCompat.getDrawable(this, R.drawable.ic_about)));
fluidBottomNavigationItems.add(new FluidBottomNavigationItem(
getString(R.string.str_add_client),
ContextCompat.getDrawable(this, R.drawable.ic_calendar)));
fluidBottomNavigationItems.add(new FluidBottomNavigationItem(
getString(R.string.str_add_client),
ContextCompat.getDrawable(this, R.drawable.ic_change_password)));
fluidBottomNavigationItems.add(new FluidBottomNavigationItem(
getString(R.string.str_add_client),
ContextCompat.getDrawable(this, R.drawable.ic_delete)));
Onclik not add in perticuler position
I would love to be able to use it in an Android project but when compiling in Android Studio I got this Warning message:
"API 'variant.getJavaCompile()' is obsolete and has been replaced with 'variant.getJavaCompileProvider()' . It will be removed at the end of 2019"
Do you think you might upload a newer version? Cause if so I would be so grateful!
Thanks so much!
val navView: BottomNavigationView = findViewById(R.id.nav_view)
val navController = findNavController(R.id.nav_host_fragment)
navView.setupWithNavController(navController)
Can we use it in this way ?
I tried to add the library to my project:
my gradle file is like that:
` apply plugin: 'com.android.application'
android {
compileSdkVersion 27
defaultConfig {
applicationId "com.package.myAppname"
minSdkVersion 15
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.tenclouds.fluidbottomnavigation:fluid-bottom-navigation:1.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
`
but I have this message:
Failed to resolve: com.tenclouds
Any suggestion ?
Can this library support with java?
or
Is any separate java lib available?
Bottom Navigation is too small. Cannot change its height.
I've tried changing the properties:
android:layout_height="wrap_content"
and this one as well:
app:height="67dp"
Also tried changing icon size but no effect.
On click on Navigation item, there is no option to change fragment in window?
I am trying to change back color from white to some other color, its not working. Please check and let me know..
I have successfully integrated this library into my Android(Java) application and now I want to change the color of the icon upon selecting any tab. By far I have done this but it's not working:
fluidBottomNavigation.setOnTabSelectedListener(
new OnTabSelectedListener() {
@Override
public void onTabSelected(int i) {
Fragment fragment = null;
switch (i) {
case 0:
fragment = new HomeFragment();
fluidBottomNavigation.setIconSelectedColor(R.drawable.ic_home_active);
break;
case 1:
fragment = new TicketsFragment();
fluidBottomNavigation.setIconSelectedColor(R.drawable.icon_tickects_active);
break;
case 2:
fluidBottomNavigation.setIconSelectedColor(R.drawable.icon_kanz_active);
fragment = new KanzFragment();
break;
case 3:
fluidBottomNavigation.setIconSelectedColor(R.drawable.icon_favorites_active);
fragment = new FavoriteFragment();
break;
case 4:
fluidBottomNavigation.setIconSelectedColor(R.drawable.icon_carts_active);
fragment = new CartFragment();
break;
}
//replacing the fragment
if (fragment != null) {
FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
ft.addToBackStack(null);
ft.replace(R.id.content_frame, fragment);
ft.commit();
}
}
}
);
```Been stuck on this for a while now.
Hi
I need to set one of the items as default selected when the view is shown and I need to change selected item inside code.
How do I programmatically set selected item ?
Can you add the latest version of the Bottom Navigation
since android studio's new version (electric eel) came,it's build structure has been changed and now it doesn't show the option of root build.gradle
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.