History log of /frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
24e362dd19caffb820011c08125c1a301ba819f8 01-Feb-2017 Yuichi Araki <yaraki@google.com> Fix restore of actionView state in NavigationView

NavigationView was crashing on restoring its states when an action view
outside the screen gets inside the screen by screen orientation change
or similar.

Test: NavigationViewTest#testActionViewState
Bug: 34796332
Change-Id: Id2c150fce4d6cc4695c50d57523243975c4f2ef0
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
8e10080c914d1ad0784394fa3026b85535535847 18-Nov-2016 Aurimas Liutikas <aurimas@google.com> Move from GROUP_ID to LIBRARY_GROUP annotations

- GROUP_ID was deprecated in favor of LIBRARY_GROUP.
- Fix import order in touched files.

Test: ./gradlew assemble assembleAndroidTest
Change-Id: I2a774e93215090f42262fb86cf8e841f2a546a4f
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
9a2ea21c22dab29fd8f807052f13091036929c48 21-Oct-2016 Yuichi Araki <yaraki@google.com> NavigationView restores state of the headers

Bug: 32285114
Test: ./gradlew support-design:connectedCheck
-Pandroid.testInstrumentationRunnerArguments.class=android.support.design.widget.NavigationViewTest#testHeaderState
Change-Id: I126578d2e12895e8f6fd3f71778c8a2d1ac3118a
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
c39d9c75590eca86a5e7e32a8824ba04a0d42e9b 25-Aug-2016 Alan Viverette <alanv@google.com> Add @RestrictTo(GROUP_ID) annotations to match @hide docs annotations

Also removes some unnecessary @hide annotations on classes that wouldn't
have shown up in docs anyway due to package/private visibility or NO_DOCS.

Bug: 27937193
Change-Id: Iab127a5a3ce57a2d61965d3cef782621eb3859f5
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
96a3a5a841741fddc3773f35a22e31cded6bbdd8 06-Sep-2016 Aurimas Liutikas <aurimas@google.com> Remove all the extra accessor methods added by javac in support-design.
am: 657ea1100f

Change-Id: I762e3378d1c7e82139e9f04c3f750324ffd9851c
657ea1100fee4750f148f9d0dcb7e7e2028f105e 25-Aug-2016 Aurimas Liutikas <aurimas@google.com> Remove all the extra accessor methods added by javac in support-design.

Change private methods to be package protected to avoid extra methods
that get added to be able to access them from inner classes.

This CL saves 138 methods in our jar.

Bug: 31075707
Change-Id: I9ee192652fe005957e28ccfe35c9707be242aac1
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
6ff96f58e00664a867b9f9e8e900ca190a82ebf4 23-Aug-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix usages of deprecated methods in support-design code." into nyc-mr1-dev
7b75d53b8e5584895595f801256a3d63bb68148a 23-Aug-2016 Aurimas Liutikas <aurimas@google.com> Fix usages of deprecated methods in support-design code.

Bug: 30074170
Bug: 31017538
Change-Id: Ib62709f853ca13db889d91688c30c97ee48fbe01
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
47082c30c630c34829439a9eecd1cf7e8d255a86 23-Aug-2016 Aurimas Liutikas <aurimas@google.com> Fix all usages of deprecated setBackgroundDrawable.

- Adds ViewCompat#setBackground that will call setBackgroundDrawable
or setBackground depending on the version.
- Replaced usages of setBackgroundDrawable with this ViewCompat version.

Bug: 30074170
Change-Id: I756c8558608da752acd6f3ca7121114d3cd1416a
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
90059dad8167895396f244b357dbd2992d66d668 28-Jul-2016 Chris Banes <chrisbanes@google.com> Don't save NavigationMenuPresenter state on API 9-10

Happens since it saves RecyclerView state, which will
probably be loaded from a different class loader. Rather
than crash we'll just not save state.

BUG: 30458641
Change-Id: I6f907fc09c22f3db2061872a4c4e75a271d23dcd
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
b7d0c459d581bee9f9d15cbabf28043cee0e2aa0 17-Jun-2016 Yuichi Araki <yaraki@google.com> Merge "NavigationView supports full-width custom views"
f3865fbd67715b07d43da357dea742edf3bf9913 15-Jun-2016 Yuichi Araki <yaraki@google.com> NavigationView supports full-width custom views

Bug: 28992790
Change-Id: I5dacd8e859badabdc7f35c40d4cd82c017a868b9
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
e57300cbdb4247da95e95059ad27a348a56477c6 14-Jun-2016 Yuichi Araki <yaraki@google.com> NavigationView dispatches insets to headers

Bug: 29062870
Change-Id: I5c335428a05665bc6e9994a71236544e681cde66
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
8ea47e618ba5dad21c7b023aa998979eebcf2103 26-Jan-2016 Kirill Grouchnikov <kirillg@google.com> Testing appearance-related APIs on NavigationView.

Also fix a bug where setting item background wouldn't update
the navigation view content. In addition, mark a few method
signatures with @Nullable where appropriate.

Bug: 26793013
Change-Id: Ie91c376d73beb7acb317510ac8322771ca17b66a
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
bf4dc598c43b8c9430e2356306a00d2173fb869d 10-Dec-2015 Yuichi Araki <yaraki@google.com> Fix transparent color

Bug: 26125673
Change-Id: I6caae98f64f5dc5e6487abbbe4f6a94e3d1a1565
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
30d42dc19655e637644adc3846025027240bf0af 01-Dec-2015 Yuichi Araki <yaraki@google.com> Support for use outside of DrawerLayout

NavigationView can now be used outside of DrawerLayout.

Bug: 22727030
Change-Id: I94fb1094592b416da5d5fe6907ae35d1318cd391
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
66698bb15ba0f873aa1c2290cc50d6bb839a474a 26-Oct-2015 Chris Banes <chrisbanes@google.com> Flatten AppCompat class hierarchy

This allows us to do two things:

1) Move away from using public @hidden classes
everywhere.
2) Workaround silly OEM bugs.

BUG: 18218511

Change-Id: I7582e242c7564c32feeb044fc9eff6bfb5c56536
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
cdccc4c6d5f1e40610ce4df4afeb1f99cbdb63e8 21-Oct-2015 Yuichi Araki <yaraki@google.com> Add a way to get header views from NavigationView

Bug: 25129671
Change-Id: Ie7170fd038f8c7e01b1ef6dadef7dca11f03fe8e
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
7c89489dcb1e7cc454da4375c387caf20201acb7 06-Oct-2015 Chris Banes <chrisbanes@google.com> Disable NavigationView nested header scrolling

We'll bring it back in a later release.
Partially reverts Ic72c86f165e26c493b965dedf4c65f2853409144

BUG: 24692916
Change-Id: I4e85d7067c36e170d47afc0f54d33d55835fbadc
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
ec161ac1da9c8ca0e942b01e037ceb1cc51a2f3c 15-Sep-2015 Mady Mellor <madym@google.com> Update NavigationView to use CoordinatorLayout for header and list.

This CL modifies how the header is handled in NavigationView. Namely, it
separates the header from the ListView. To scroll the header and list
together, both the header and list are placed in a CoordinatorLayout with
behaviors that allow them to scroll together.

This work will allow an overlay to be added that scrolls with the list
so that we can properly animate the account switcher. The overlay and
account switcher work will be done in a separate CL.

Bug: 20117594
Change-Id: Ic72c86f165e26c493b965dedf4c65f2853409144
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
64bcb674cc45ab712a591d4f540d5c13404f3b83 03-Sep-2015 Yuichi Araki <yaraki@google.com> Revert "Revert "Use RecyclerView for NavigationView""

This reverts commit ca2f07c9cc83b98d73a18da7177044ee147ffb94.

Change-Id: I7c19c2f84fc4b520b8a1951729c40a1f9ac1435f
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
ca2f07c9cc83b98d73a18da7177044ee147ffb94 01-Sep-2015 Chris Banes <chrisbanes@google.com> Revert "Use RecyclerView for NavigationView"

This reverts commit e7b2c26d2ffadc94dc6ee043ab12e03201e1bf95.

Change-Id: I1c7ec7629a08566dd4a17431a857e36961ba8270
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
e7b2c26d2ffadc94dc6ee043ab12e03201e1bf95 25-Aug-2015 Yuichi Araki <yaraki@google.com> Use RecyclerView for NavigationView

Replace ListView with RecyclerView. This does not change any public
APIs.

Change-Id: I618360f0267c74692dd2e4489455b845c379d52c
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
ec072869e620f144d1550ff83a92d6fc138a377f 20-Aug-2015 Yuichi Araki <yaraki@google.com> NavigationView now handles listener result

NavigationView doesn't mark a clicked item as checked when
OnNavigationItemSelectedListener#onNavigationItemSelected returns false.

Bug: 23368143
Change-Id: I17bc97298e5f3fc39ae8fa6aca0934ed555ed180
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
36d347c02fa8da71ccd69634484be8156fa0085b 14-Jul-2015 Yuichi Araki <yaraki@google.com> NavigationView now supports app:actionLayout

The specified layout is inflated as an extra item in the menu row.

Bug: 22837324
Change-Id: Iaa0921c45395dd779429052019761e59d66c34be
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
42db3143bed767c8e826e69f214672be358078eb 09-Jul-2015 Yuichi Araki <yaraki@google.com> Fix NavigationView duplicating some items

Bug: 22365524
Change-Id: Ib872c494739270d3a5eb8c2d13a35c0d2fb090db
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
33c086b170ad408746728df4a4b5d6d9f10e7508 26-Jun-2015 Yuichi Araki <yaraki@google.com> Merge "Fix SubMenu in NavigationView" into lmp-mr1-ub-dev
a577676a64e5353b8ec927117151aa6be84adf66 23-Jun-2015 Chris Banes <chrisbanes@google.com> Prefix design lib resources to try and avoid conflicts

BUG: 21363917
Change-Id: I770a01618ac8fefae6d82d1640ccf313111e38e8
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
6c72ea0134a3309ff8197f0862aad8d7bc712b55 15-Jun-2015 Yuichi Araki <yaraki@google.com> Fix SubMenu in NavigationView

This introduces new wrappers; NavigationMenu and NavigationSubMenu.
These are necessary to notify the top menu when its sub menu is changed.
https://code.google.com/p/android/issues/detail?id=176300

Change-Id: I1ea97880dfb0e0c1dee6426b3c528d6d60323063
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
f9492b54d361fffc5577d2905f111535b87f95ea 16-Jun-2015 Yuichi Araki <yaraki@google.com> Remove unnecessary ripple

https://code.google.com/p/android/issues/detail?id=176400

Change-Id: I8e0f5dc827c795f3a5acf1bee39fd79d9c927566
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
1a542ba7235ec038f7ec1ac0ed65f35d29f5c952 15-Jun-2015 Yuichi Araki <yaraki@google.com> Fix issues with Drawable states in NavigationView

- Background drawable is properly rendered now
https://code.google.com/p/android/issues/detail?id=176570
- Icon tinting properly works on Gingerbread now
https://code.google.com/p/android/issues/detail?id=176133

Change-Id: I6485a3fbeb7076151233cebccc0b4478a0210cd3
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
024b36390fce843107b0916f0c3468e5a67a212a 10-Jun-2015 Yuichi Araki <yaraki@google.com> Fix NPE on orientation change

Fix NPE when the screen is rotated without any menu items checked in
NavigationView.

Change-Id: I8bcf22832643d4a03b8c1ef06a448c81a7bf562a
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
153fa9a03422419cd56b7d17def1ae907fc7b5cf 08-Jun-2015 Chris Banes <chrisbanes@google.com> Add method to change NavigationView text appearance

BUG: 21455036
Change-Id: I5ce72af991c66ac1f7750bd1820bc4361f95eddf
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
f9b8005bf607feddd9b482f817bd68c46739e4f1 08-Jun-2015 Yuichi Araki <yaraki@google.com> NavigationView handles checked status

NavigationView now handles checked status in its menu. This was
necessary to handle checked status for items in sub menu. Also, it now
forces only one item to be marked as checked among all the checkable
items in the menu. Menu groups can be marked as checkedBehavior="single"
or ="all", but all the items behave the same in either cases.

Change-Id: Ia2e1a39475175b5ada8ec84273a39b995ec414c3
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
cc7a09fc0018e348027151daecf581b1d1b78f11 05-Jun-2015 Yuichi Araki <yaraki@google.com> Fix for menu XML ending with a sub menu

Bug: 21650306
Change-Id: I4ba4f1f2a04354416ce914914806cf5ec8acd0d4
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
76bd4d2c1173100ab73c4f27dc42dd917c48915f 02-Jun-2015 Yuichi Araki <yaraki@google.com> Keep the selected state of items in NavigationView

Bug: 21550053
Change-Id: I56bd2a0bbf9e42a309b57d48ce301e9aa17aca29
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
44dc3d86d8fa6544d49b2e14f89c9b1f49639dbd 11-May-2015 Chris Banes <chrisbanes@google.com> Fix crashes on Gingerbread devices

Caused by using a LinearLayout constructor and view
method that doesn't exist on GB.

Change-Id: Ibc4f8c09adaf5b7001530bed87027be978b546cf
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
a63940ca14cd3ad9620e94f709930bb968525c57 01-May-2015 Chris Banes <chrisbanes@google.com> Tidy up styling and tinting in NavigationView

Currently there is no way to set a different tint/color
for the text and icon. This icon splits them up and tidies
up some of the internal state.

Change-Id: I5d81f19dddf2df6cfc983fc2a60b2353a780d522
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
72fa50f289d462aae5038e8dd78e134a0fffcf12 15-Apr-2015 Yuichi Araki <yaraki@google.com> Fix crash of NavigationView on Gingerbread

The header is now wrapped in a LinearLayout so that
ListView#addHeaderView is not called after setAdapter.

Change-Id: Id30c05f76416c894cd2aad721e566b56de99d54c
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
60abdeb39630c4c74a4c401e221f0c968caa26f5 18-Mar-2015 Yuichi Araki <yaraki@google.com> Fix paddings for separators in NavigationView

There should be no bottom padding for separators just before subheaders.
This also fixes crash on NavigationMenuPresenter#addHeaderView on API
level 15.

Bug: 20110356

Change-Id: Iab50166d78d8e987ec71c19e1b543c165f5f8b3c
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
3a2c9c408e240e761b043139c5d228d3ad93f6c2 26-Mar-2015 Chris Banes <chrisbanes@google.com> Add app:menu attribute to NavigationView

Also refactored some of the navigation view internals.

BUG: 19938713
Change-Id: I046761c2c41490fd28b984c035672add77ea9c7a
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
9b712fb00d9abb460b2dda0d06340cbbc6a835fe 20-Feb-2015 Yuichi Araki <yaraki@google.com> Merge "Align menu items in NavigationDrawerView" into lmp-mr1-ub-dev
8bc6f4dfa590d8cd872a9894804a4c80d01a5d87 19-Feb-2015 Yuichi Araki <yaraki@google.com> Align menu items in NavigationDrawerView

Menu items are aligned properly in section according to whether one or
more of the menu items in the section has an icon.

Change-Id: I220ee63de14baef9faf59a47c9a797a34af48a0a
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
a5081dfb26b3664d97d5fe09b9b6a9c9667e0e9f 19-Feb-2015 Yuichi Araki <yaraki@google.com> Rename NavigationDrawerView to NavigationView

Change-Id: I639fbb4754add5d72f5baaca6728fc1348e256e0
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
d3ee2c7d22c0cb204ea9077fa9e64511266d6799 10-Feb-2015 Yuichi Araki <yaraki@google.com> Add selection feature to NavigationDrawerView.

The selected item can be marked by MenuItem#setChecked in
onNavigationItemSelected callback. This also takes MenuGroup into
account, that is, NavigationDrawerView highlights only one item in one
MenuGroup.

Also removes an unnecessary separator when a MenuGroup comes at the top
of the menu.

Change-Id: Ia7373bb8b64836de8a0db7552c5304165afa7d64
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
01090f9556e7518c9ee206de6efe42de9003f6f5 05-Feb-2015 Yuichi Araki <yaraki@google.com> Implement features for NavigationDrawerView menu

- Header
- Visible/invisible items
- Enabled/disabled items
- Subheader using SubMenu
- Divide menu items by <group>
- Paddings and margins

Change-Id: I11dadf09725b4ec1d171403c3828faeb1b2c353b
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
31a49efe2adb59e31611f6871895a3243d835127 30-Jan-2015 Yuichi Araki <yaraki@google.com> Initial implementation of NavigationDrawer

NavigationDrawer can be used inside DrawerLayout (support-v4) to provide
navigation menu. The menu can be populated by XML.

This is just a starting point. It still misses a lot of major features,
including marking current item, account switcher API, and pinning items.

This chnage also adds android.support.v4.widget.TextViewCompat with
setCompoundDrawablesRelative* methods.

This reverts commit e34464da9acbbf5891651addc0983d2d920f5be4.

Change-Id: I54cd343be90588cb1735189deb2100552240fde8
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
e34464da9acbbf5891651addc0983d2d920f5be4 30-Jan-2015 Yuichi Araki <yaraki@google.com> Revert "Initial implementation of NavigationDrawer"

This reverts commit d4bea8be0627dac53fb5907f1f64dddf6147d55e.

Change-Id: Ic36cd74dbd8c0ba9b66fd65b096f60a1957011e9
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java
d4bea8be0627dac53fb5907f1f64dddf6147d55e 14-Jan-2015 Yuichi Araki <yaraki@google.com> Initial implementation of NavigationDrawer

NavigationDrawer can be used inside DrawerLayout (support-v4) to provide
navigation menu. The menu can be populated by XML.

This is just a starting point. It still misses a lot of major features,
including marking current item, account switcher API, and pinning items.

This chnage also adds android.support.v4.widget.TextViewCompat with
setCompoundDrawablesRelative* methods.

Change-Id: Ife8e39de2e2938d246713bb8cd486489be92cd6a
/frameworks/support/design/src/android/support/design/internal/NavigationMenuPresenter.java