Show text on each bottom nav item, and tone down animations.
Fixes issue #892.
This commit is contained in:
		
							parent
							
								
									d527b26814
								
							
						
					
					
						commit
						d9cb2fc5da
					
				@ -78,6 +78,8 @@ public class MainActivity extends AppCompatActivity implements BottomNavigationV
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        bottomNavigation = (BottomNavigationViewEx) findViewById(R.id.bottom_navigation);
 | 
					        bottomNavigation = (BottomNavigationViewEx) findViewById(R.id.bottom_navigation);
 | 
				
			||||||
        bottomNavigation.setOnNavigationItemSelectedListener(this);
 | 
					        bottomNavigation.setOnNavigationItemSelectedListener(this);
 | 
				
			||||||
 | 
					        bottomNavigation.enableShiftingMode(false);
 | 
				
			||||||
 | 
					        bottomNavigation.enableItemShiftingMode(false);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (savedInstanceState != null) {
 | 
					        if (savedInstanceState != null) {
 | 
				
			||||||
            selectedMenuId = savedInstanceState.getInt(STATE_SELECTED_MENU_ID, R.id.whats_new);
 | 
					            selectedMenuId = savedInstanceState.getInt(STATE_SELECTED_MENU_ID, R.id.whats_new);
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										6
									
								
								app/src/main/res/color/bottom_nav_items.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								app/src/main/res/color/bottom_nav_items.xml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,6 @@
 | 
				
			|||||||
 | 
					<?xml version="1.0" encoding="utf-8"?>
 | 
				
			||||||
 | 
					<selector xmlns:android="http://schemas.android.com/apk/res/android">
 | 
				
			||||||
 | 
					    <item android:color="@android:color/white" android:state_checked="true"/>
 | 
				
			||||||
 | 
					    <item android:color="@android:color/white" android:state_pressed="true"/>
 | 
				
			||||||
 | 
					    <item android:color="#B8D4F0"/>
 | 
				
			||||||
 | 
					</selector>
 | 
				
			||||||
@ -14,8 +14,8 @@
 | 
				
			|||||||
        app:menu="@menu/main_activity_screens"
 | 
					        app:menu="@menu/main_activity_screens"
 | 
				
			||||||
        android:background="@color/fdroid_blue"
 | 
					        android:background="@color/fdroid_blue"
 | 
				
			||||||
        app:itemBackground="@color/fdroid_blue"
 | 
					        app:itemBackground="@color/fdroid_blue"
 | 
				
			||||||
        app:itemIconTint="@android:color/white"
 | 
					        app:itemIconTint="@color/bottom_nav_items"
 | 
				
			||||||
        app:itemTextColor="@android:color/white" />
 | 
					        app:itemTextColor="@color/bottom_nav_items" />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <android.support.v7.widget.RecyclerView
 | 
					    <android.support.v7.widget.RecyclerView
 | 
				
			||||||
        android:id="@+id/main_view_pager"
 | 
					        android:id="@+id/main_view_pager"
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user