Comments (7)
"Did you find a solution?"... he didn't answer back, which means no, or he died of covid.
from meowbottomnavigation.
I can find it using <meow.bottomnavigation.MeowBottomNavigation> instead of <com.etebarian.meowbottomnavigation.MeowBottomNavigation> but my app crashes when I add Model in java...
Did you find a solution?
I had to downgrade the dependency version in order to run the app. If you do not have any problem with downgrading then
Add the dependencies:
dependencies {
...
implementation 'com.etebarian:meow-bottom-navigation:1.2.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.20"
...
}
Add XML Widget:
<com.etebarian.meowbottomnavigation.MeowBottomNavigation
android:id="@+id/bottom_nav_meow"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:mbn_backgroundBottomColor="#ffffff"
app:mbn_circleColor="#ffffff"
app:mbn_countBackgroundColor="#ff6f00"
app:mbn_countTextColor="#ffffff"
app:mbn_defaultIconColor="#90a4ae"
app:mbn_rippleColor="#2f424242"
app:mbn_selectedIconColor="#3c415e"
app:mbn_shadowColor="#1f212121" />
Java:
public class MainActivity extends AppCompatActivity {
private MeowBottomNavigation bottomNavigation_meow;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
bottomNavigation_meow = findViewById(R.id.bottom_nav_meow);
bottomNavigation_meow.add(new MeowBottomNavigation.Model(1,R.drawable.ic_launcher_foreground));
bottomNavigation_meow.add(new MeowBottomNavigation.Model(2,R.drawable.ic_launcher_foreground));
bottomNavigation_meow.add(new MeowBottomNavigation.Model(3,R.drawable.ic_launcher_foreground));
bottomNavigation_meow.show(1,true);
bottomNavigation_meow.setOnClickMenuListener(new Function1<MeowBottomNavigation.Model, Unit>() {
@Override
public Unit invoke(MeowBottomNavigation.Model model) {
switch (model.getId()){
case 1:
Toast.makeText(bottomNavigation_meow.getContext(), "Button 1 Clicked", Toast.LENGTH_SHORT).show();
break;
case 2:
Toast.makeText(bottomNavigation_meow.getContext(), "Button 2 Clicked", Toast.LENGTH_SHORT).show();
break;
case 3:
Toast.makeText(bottomNavigation_meow.getContext(), "Button 3 Clicked", Toast.LENGTH_SHORT).show();
break;
}
return null;
}
});
}
}
from meowbottomnavigation.
I can find it using <meow.bottomnavigation.MeowBottomNavigation> instead of <com.etebarian.meowbottomnavigation.MeowBottomNavigation> but my app crashes when I add Model in java...
from meowbottomnavigation.
I can find it using <meow.bottomnavigation.MeowBottomNavigation> instead of <com.etebarian.meowbottomnavigation.MeowBottomNavigation> but my app crashes when I add Model in java...
Did you find a solution?
from meowbottomnavigation.
mine also crashed by the way. Also java.
from meowbottomnavigation.
This inspection reports that different IDE and Gradle plugin versions are used. This can cause inconsistencies between IDE and Gradle builds in error reporting or code behaviour.
how will i fix this kind of error. pls someone guide me
from meowbottomnavigation.
I can find it using <meow.bottomnavigation.MeowBottomNavigation> instead of <com.etebarian.meowbottomnavigation.MeowBottomNavigation> but my app crashes when I add Model in java...
Did you find a solution?
I had to downgrade the dependency version in order to run the app. If you do not have any problem with downgrading then
Add the dependencies:
dependencies { ... implementation 'com.etebarian:meow-bottom-navigation:1.2.0' implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.20" ... }
Add XML Widget:
<com.etebarian.meowbottomnavigation.MeowBottomNavigation android:id="@+id/bottom_nav_meow" android:layout_width="match_parent" android:layout_height="wrap_content" app:mbn_backgroundBottomColor="#ffffff" app:mbn_circleColor="#ffffff" app:mbn_countBackgroundColor="#ff6f00" app:mbn_countTextColor="#ffffff" app:mbn_defaultIconColor="#90a4ae" app:mbn_rippleColor="#2f424242" app:mbn_selectedIconColor="#3c415e" app:mbn_shadowColor="#1f212121" />
Java:
public class MainActivity extends AppCompatActivity { private MeowBottomNavigation bottomNavigation_meow; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); bottomNavigation_meow = findViewById(R.id.bottom_nav_meow); bottomNavigation_meow.add(new MeowBottomNavigation.Model(1,R.drawable.ic_launcher_foreground)); bottomNavigation_meow.add(new MeowBottomNavigation.Model(2,R.drawable.ic_launcher_foreground)); bottomNavigation_meow.add(new MeowBottomNavigation.Model(3,R.drawable.ic_launcher_foreground)); bottomNavigation_meow.show(1,true); bottomNavigation_meow.setOnClickMenuListener(new Function1<MeowBottomNavigation.Model, Unit>() { @Override public Unit invoke(MeowBottomNavigation.Model model) { switch (model.getId()){ case 1: Toast.makeText(bottomNavigation_meow.getContext(), "Button 1 Clicked", Toast.LENGTH_SHORT).show(); break; case 2: Toast.makeText(bottomNavigation_meow.getContext(), "Button 2 Clicked", Toast.LENGTH_SHORT).show(); break; case 3: Toast.makeText(bottomNavigation_meow.getContext(), "Button 3 Clicked", Toast.LENGTH_SHORT).show(); break; } return null; } }); } }
Thanks
Solved the issue
from meowbottomnavigation.
Related Issues (20)
- Any way to add Lottie icon ? or perhaps a Gif ?
- Png images not showing correctly
- how to set circle navigation & icon size?
- How to change current cell position?
- The first page doesn't show any thing HOT 1
- Unselect all
- bottom navigation bar color not changing
- How to use this with NavController
- How can I hide the bottom navigation in secondary fragments?
- Meowbottomnavigation.ClickListner not working in Android with Java Project
- Unable to add Drawable icon
- how to set selected item
- How can we customize the curves?
- Library Not working in my android Kotlin project HOT 1
- The library cannot be downloaded (Failed to resolve: com.etebarian:meow-bottom-navigation:1.3.1) HOT 7
- support issue
- How to use drawable or bitmap get from internet image
- How to add top left, top right corner into bottom navigation
- 1.3.1 dont show icons correctly HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meowbottomnavigation.