fa2e2acf79d791a90410025daad438968550d18c |
|
31-Mar-2017 |
Alan Viverette <alanv@google.com> |
Remove unnecessary casts on calls to findViewById Updates Android.mk where applicable. Bug: 24137209 Test: make -j32 Change-Id: I04084b2d05ddd7afaa160a76efe0b0d0c8eb5f00
/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/BottomNavigationViewUsage.java
|
6b3a399a8ed6afa4c9da88690a61efca61b61d21 |
|
29-Jan-2017 |
Jonathan Koren <jdkoren@google.com> |
Add item reselected listener to BottomNavigationView Adds an additional listener in for developers that want to discern between item selection and reselection without tracking the current selection. This maintains backward compatibility with existing uses of OnNavigationItemSelectedListener by itself in client code; new behavior is only observed if an OnNavigationItemReselectedListener is added. Bug: 34576220 Test: Modified tests in BottomNavigationViewTest, Updated support-design-demos Change-Id: Id48cde6395dd73a01ce68e3be1783161229f8939
/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/BottomNavigationViewUsage.java
|
e4c7e61dbe94a77c5389eb20952d6b7ed6536caf |
|
24-Jan-2017 |
Jonathan Koren <jdkoren@google.com> |
Add setSelectedItemId() to BottomNavigationView Also fixes a bug where programmatic selection of an item (previously by calling setChecked(true) on a menu item) does not invoke the OnNavigationItemSelectedListener and does not animate properly. Bug: 34627065 Bug: 33002556 Test: Added new tests in BottomNavigationViewTest Change-Id: I2acbacaedb6cf7a05135ba90137f939b690190da
/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/BottomNavigationViewUsage.java
|
69557a3a037e4124ecbc98560e84fa89472b3bf4 |
|
07-Nov-2016 |
Aurimas Liutikas <aurimas@google.com> |
Fix BottomNavigationMenu item selection via Menu object - Move the logic of handling which item is checked to MenuBuilder instead of BottomNavigationMenu itself by making all the MenuItems exclusively checked. - Fixes MenuBuilder#startDispatchingItemsChanged to call onItemsChanged with a correct value of structureChanged. It now keeps track if structure changes while dispatching is prevented. - Added a button to focus the next bottom navigation item to BottomNavigationViewUsage Bug: 32336752 Test: Added a new test to BottomNavigationViewTest Change-Id: Ief3ff356b501373aaabdd5f4990ecf6f9c506f05
/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/BottomNavigationViewUsage.java
|
578015fc3e5ddc0fdb95db7ad0d00822c54be6df |
|
25-Oct-2016 |
Aurimas Liutikas <aurimas@google.com> |
Start using return value of OnNavigationItemSelectedListener. Previously returning false in OnNavigationItemSelectedListener did not affect the selected state of BottomNavigationView. This CL makes it so that we start using that return value correctly. Bug: 32336558 Test: expanded BottomNavigationViewTest#testNavigationSelectionListener Change-Id: Id091acf5c4bc67b7db35477b43b17c966d87ff86
/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/BottomNavigationViewUsage.java
|
111ab9977e17f525a1c6435de9203f096f8635af |
|
07-Oct-2016 |
Aurimas Liutikas <aurimas@google.com> |
Force BottomNavigationView item labels to be singleLine. - Set BottomNavigationView item labels to be single line. - Update BottomNavigationViewUsage to demo OnNavigationItemSelectedListener usage. Bug: 32414896 Test: ran SupportDesignDemos Change-Id: I701a25826f5f2e28b4262dc0526b151ec5a65514
/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/BottomNavigationViewUsage.java
|
3cc432a5bd723a79dc52438235b47d0ea5d41ae4 |
|
19-Aug-2016 |
Aurimas Liutikas <aurimas@google.com> |
Adding shifting mode to BottomNavigationView. This change adds a new mode to BottomNavigationView that follow the https://material.google.com/components/bottom-navigation.html spec. Bug: 27675079 Change-Id: I868bc3c8cedd39c4e5a66c3c0ffbadff93bdf329
/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/BottomNavigationViewUsage.java
|
910de28f0a195668fad38ad2367c1f7237a7af98 |
|
23-Jun-2016 |
Aurimas Liutikas <aurimas@google.com> |
Fix BottomNavigationView tint clearing with null. Fixes a crash in BottomNavigationView for setItemIconTintList(null) calls. Additionally, CL adds tests to make sure tinting work correctly (largely inspired by NavigationViewTest). Finally, starts settings BottonNavigationItemView id to the MenuItem id. Bug: 27675079 Change-Id: Ief696ab997407ad17eedc6b43c373e95638f4c34
/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/BottomNavigationViewUsage.java
|
cd78f10725efd4104168da3b6f3609bac36ad1b2 |
|
18-Jun-2016 |
Aurimas Liutikas <aurimas@google.com> |
Fix R import in BottomNavigationView usage. Fixes the broken support_library build. Change-Id: I9f1a479dd1c9ea779f330ccbbe84330503388e12
/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/BottomNavigationViewUsage.java
|
23e274886774bf1a6c433ed98503e148fa1e15b4 |
|
28-Apr-2016 |
Aurimas Liutikas <aurimas@google.com> |
Initial implementation for BottomNavigationView widget. Bug: 27675079 Change-Id: Ic24dfa979557f5af06294c61da5d74821254a583
/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/BottomNavigationViewUsage.java
|