diff options
| author | Dianne Hackborn <hackbod@google.com> | 2010-09-17 18:29:22 -0700 |
|---|---|---|
| committer | Dianne Hackborn <hackbod@google.com> | 2010-09-21 22:08:50 -0700 |
| commit | 625ac271f80777668f832a344486a6fcdc06d0ae (patch) | |
| tree | d9646d9a22d407ef7745cc39fa161488433a8e6e /tools/layoutlib/bridge | |
| parent | 6cf08937a11851403e63908b937c9de0dff5a8cf (diff) | |
| download | frameworks_base-625ac271f80777668f832a344486a6fcdc06d0ae.zip frameworks_base-625ac271f80777668f832a344486a6fcdc06d0ae.tar.gz frameworks_base-625ac271f80777668f832a344486a6fcdc06d0ae.tar.bz2 | |
Work on fragments in layouts.
- Change semantics if IDs associated with these fragments, to
work correctly when placed in a container. If the container
has an ID or you have supplied a tag, the fragment's ID is
optional.
- To do this, there is a new LayoutInflater API that allows code
creating views to access the parent container that view will
be in.
- Fix issues with state management around these fragments. Now
correctly retains state when switching to a layout that doesn't
include the fragment.
Also:
- Add new simple list layouts for items that want to show an
activated state.
- Add new Activity.dump() that can be invoked with adb shell
dumpsys; the default implementation dumps fragment state.
Change-Id: I192f35e3ea8c53fbd26cf909095f2a994abfc1b6
Diffstat (limited to 'tools/layoutlib/bridge')
| -rw-r--r-- | tools/layoutlib/bridge/src/android/view/BridgeInflater.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/layoutlib/bridge/src/android/view/BridgeInflater.java b/tools/layoutlib/bridge/src/android/view/BridgeInflater.java index 0910d79..4bc8855 100644 --- a/tools/layoutlib/bridge/src/android/view/BridgeInflater.java +++ b/tools/layoutlib/bridge/src/android/view/BridgeInflater.java @@ -116,10 +116,10 @@ public final class BridgeInflater extends LayoutInflater { } @Override - public View createViewFromTag(String name, AttributeSet attrs) { + public View createViewFromTag(View parent, String name, AttributeSet attrs) { View view = null; try { - view = super.createViewFromTag(name, attrs); + view = super.createViewFromTag(parent, name, attrs); } catch (InflateException e) { // try to load the class from using the custom view loader try { |
