OSDN Git Service

Add view cookies for action bar menus. [DO NOT MERGE]
authorDeepanshu Gupta <deepanshu@google.com>
Fri, 18 Apr 2014 19:32:38 +0000 (12:32 -0700)
committerDeepanshu Gupta <deepanshu@google.com>
Thu, 24 Apr 2014 01:04:21 +0000 (18:04 -0700)
commit5ba2f230faa355eb9bc1e90f6c48eeeb437f390c
tree4cf085065cf277cd74566ca32e39c2be50761cc5
parentc436772120ceea1d6e3f5b388ef068c99c8bb7d6
Add view cookies for action bar menus. [DO NOT MERGE]

The change adds the view cookies for the menus rendered in the action
bar. This enables the IDE to map the menu to the relevant XML Tag in the
menu xml and show the highlighting accordingly.

The change also contains a bugfix where a method wasn't renamed
properly.

Change-Id: Idcfc263a8ebe0a4f25afa3a1eb085fa628fd03ca
(cherry-picked from commit 1001961f904bac5294aaf73a47c2497aa764bf7f)
core/java/android/view/MenuInflater.java
core/java/com/android/internal/view/menu/MenuBuilder.java
tools/layoutlib/bridge/src/android/view/BridgeInflater.java
tools/layoutlib/bridge/src/android/view/MenuInflater_Delegate.java [new file with mode: 0644]
tools/layoutlib/bridge/src/com/android/internal/view/menu/BridgeMenuItemImpl.java [new file with mode: 0644]
tools/layoutlib/bridge/src/com/android/internal/view/menu/MenuBuilder_Delegate.java [new file with mode: 0644]
tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
tools/layoutlib/create/src/com/android/tools/layoutlib/create/CreateInfo.java