bottombar

Android Bottom Navigation - Maintaining Activity State

无人久伴 提交于 2020-01-26 03:14:28
问题 I know it's recommended to use Fragments instead of Activities when working with Bottom Navigation . Due to the current design, I want to avoid having to convert all the Activities The Design: I am using a Bottom Navigation bar like shown Each tab is an Activity . When you tap on any of the tabs, it launches the activity, startActivity(new Intent(getApplication(), TabActivityName.class)); . The problem is that when you switch between these tabs, the state of the Activity is lost. For example:

Android bottom navigation bar customization

白昼怎懂夜的黑 提交于 2019-12-04 14:02:55
问题 I have successfully implementing simple bottom bar and it looks like picture 1. But I wanted to customize it further so it can looks like the bottom bar in Youtube's android apps, which when you clicked in one of the item, it will spread shadowing effect. My current bottom bar: Youtube's bottom bar I would also like to customize it to look like the one in the official site with some animation when items are clicked. Any snippet or tutorial links would be appreciated. Thanks 回答1: try this

How to create a Navigation Drawer and Bottom Bar in the same app

若如初见. 提交于 2019-11-29 08:07:25
问题 I am creating an app, and I want to have a Navigation Drawer and a Bottom Bar in the app. I think that I am going for a good way, but I Can do that the Navigation Drawer when I display it, this is not above the Bottom Bar, it is behind, so How can I do it? I need the Navigation Drawer up of the Bottom Bar. This is my code, I hope you can help me, thanks n.n <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http:/

BottomNavigationView with more than 3 Items: tab title is hiding

泪湿孤枕 提交于 2019-11-28 16:37:50
I'm using BottomNavigationView with using Android Support Desing Library 25. But when I switch the tabs, the other tab's title is hiding. But there is no hiding issue actual Bottom Navigation View. But mine is hiding. But I want to it looking like that. Any idea to do that? What am I missing? Here is my code: activity_main.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/activity_main" android:layout_width="match_parent" android:layout_height="match

Error : IllegalArgumentException: The style on this component requires your app theme to be Theme.MaterialComponents

泪湿孤枕 提交于 2019-11-28 03:44:14
问题 Below are my dependencies implementation 'com.google.android.material:material:1.0.0' implementation 'androidx.appcompat:appcompat:1.0.2' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' My layout.xml <?xml version="1.0" encoding="utf-8"?> <androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/main_content" android:layout_width="match_parent" android

BottomNavigationView with more than 3 Items: tab title is hiding

二次信任 提交于 2019-11-27 19:58:48
问题 I'm using BottomNavigationView with using Android Support Desing Library 25. But when I switch the tabs, the other tab's title is hiding. But there is no hiding issue actual Bottom Navigation View. But mine is hiding. But I want to it looking like that. Any idea to do that? What am I missing? Here is my code: activity_main.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/res