Comments (7)
thank, i will check it
from meowbottomnavigation.
I tested and there is not bug. can you send your code?
from meowbottomnavigation.
`
class Main2Activity : AppCompatActivity() {
companion object {
private const val ID_VERIFY_USER = 1
private const val ID_USERS = 2
}
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main2)
bottomNavigation.add(MeowBottomNavigation.Model(ID_VERIFY_USER, R.drawable.ic_add_user))
bottomNavigation.add(MeowBottomNavigation.Model(ID_USERS, R.drawable.ic_users))
bottomNavigation.show(ID_USERS, true)
bottomNavigation.setOnShowListener {
when (it.id) {
ID_VERIFY_USER -> {
loadFragment(AddVerifyUserFragment(), AddVerifyUserFragment.TAG)
}
ID_USERS -> {
loadFragment(UsersListFragment(), UsersListFragment.TAG)
}
else -> {
}
}
}
bottomNavigation.setOnClickMenuListener {
when (it.id) {
ID_VERIFY_USER -> {
loadFragment(AddVerifyUserFragment(), AddVerifyUserFragment.TAG)
}
ID_USERS -> {
loadFragment(UsersListFragment(), UsersListFragment.TAG)
}
else -> {
}
}
}
}
private fun loadFragment(fragment: Fragment, tag: String) {
supportFragmentManager
.beginTransaction()
.replace(R.id.fragment_container, fragment, tag)
.commit()
}
}
`
`
<RelativeLayout
android:id="@+id/fragment_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/bottomNavigation" />
<com.etebarian.meowbottomnavigation.MeowBottomNavigation
android:id="@+id/bottomNavigation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
app:mbn_backgroundBottomColor="#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" />
`
`
public class UsersListFragment extends Fragment {
public static final String TAG = UsersListFragment.class.getName();
private View v;
public UsersListFragment() {
// Required empty public constructor
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
v = inflater.inflate(R.layout.fragment_users_list, container, false);
return v;
}
}
`
`
<!-- TODO: Update blank fragment layout -->
<androidx.appcompat.widget.AppCompatEditText
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="@string/hello_blank_fragment" />
`
from meowbottomnavigation.
Did you try out edittext in a fragment which opens on menu item selected?
from meowbottomnavigation.
Got it solved.. calling fragment on both menu click and show listener dismissing the keypad. Thanks for the library.
from meowbottomnavigation.
Hii Mr rahulas. I have this problem too. Could yo help me?
from meowbottomnavigation.
Got it solved.. calling fragment on both menu click and show listener dismissing the keypad. Thanks for the library.
Help me, i have this problem too
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
- Remove Jcenter because it was shutdown
- On Navigation Listener is not Working
- Meowbottomnavigation.ClickListner not working in Android with Java Project
- Unable to add Drawable icon
- Lack of recognition in Java HOT 7
- 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.