History log of /frameworks/base/core/java/android/view/LayoutInflater.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
20d01ad8a17b85ed8a100178f01e5eed12f31cf5 19-Sep-2014 Dan Sandler <dsandler@android.com> Merge "Fix LayoutInflater copy constructor logic." into lmp-dev
0c7bb33e03392416fc98c27738d1bcca386a6b2f 19-Sep-2014 Dan Sandler <dsandler@android.com> Fix LayoutInflater copy constructor logic.

Avoids an NPE in mFilterMap.

Bug: 17548265
Change-Id: I6556373862f706dbcf5549eaec61c3e10a47b482
/frameworks/base/core/java/android/view/LayoutInflater.java
a9ddb8dc23b253c53f24ceb81e9d596c072d834e 18-Sep-2014 Alan Viverette <alanv@google.com> Use action bar theme for action modes, fix ViewStub inflation theme

BUG: 17262483
BUG: 17513621
Change-Id: I74764570a11da162a224e94978e21e52d17e2e84
/frameworks/base/core/java/android/view/LayoutInflater.java
371a809179c843d7ae661a10bc9b4b8cfcaff566 20-Jun-2014 Adam Powell <adamp@google.com> Inflate fragments from layout into child FragmentManagers

Previously, if an app inflated a layout in a Fragment's onCreateView
that itself had fragments included, those fragments would be added to
the Activity-level FragmentManager and would not share the same
lifecycle with the fragment it was inflated for. This led to some
nasty management headaches.

If an app targets L or above, add the fragment to the child
FragmentManager of the current fragment when inflated using the
LayoutInflater passed to the parent fragment.

Bug 12763389

Change-Id: Iad4ed7d5df602aea9579bf1503e206fa894630c1
/frameworks/base/core/java/android/view/LayoutInflater.java
0810b63739c9981f993063749f804b54faed0ba5 01-May-2014 Alan Viverette <alanv@google.com> Load device default theme mapping from resources

Also adds a few missing styles and reorganizes some XML files. Makes
stackViewStyle public since it's defined in DeviceDefault.

Change-Id: I8f6a0f93410948b38619594474d60dc40ece5917
/frameworks/base/core/java/android/view/LayoutInflater.java
7d89b85f499331523e6c976edbd2919603ab9f69 29-Mar-2014 Jeff Hao <jeffhao@google.com> am f1354dd2: am d648e5f7: am e9b4fd07: Merge "Mark constructor as accessible in LayoutInflater."

* commit 'f1354dd206a74e1475e8c1f8682dfd9d5e146f00':
Mark constructor as accessible in LayoutInflater.
e3abd2ccbef4c50b48df3605c65d732fa49a980b 28-Mar-2014 Jeff Hao <jeffhao@google.com> Mark constructor as accessible in LayoutInflater.

Needed to bypass new access checks for fields, methods, and
constructors.

Change-Id: I8ff0b44a6cb4f4af1c72734bca366d8b89528030
/frameworks/base/core/java/android/view/LayoutInflater.java
451a3417e97d9d3bb835290a65f9af30b112c789 12-Feb-2014 Alan Viverette <alanv@google.com> Add support for assigning keyed View tags via XML

BUG: 12768823
Change-Id: Ic55c88894dc153c0af0805e403ad8e40d13abcd2
/frameworks/base/core/java/android/view/LayoutInflater.java
ef259e4484deb69ada76970e26f2b2542b1fe4c1 25-Jan-2014 Alan Viverette <alanv@google.com> Allow specification of View theme override as a theme attribute

WE MUST GO DEEPER.

Change-Id: I492c3750e108d01d6f8d325ccc2bedb1ade5b91b
/frameworks/base/core/java/android/view/LayoutInflater.java
24927f2798fdeee3aa4fa13dee5acfa218e993e3 08-Jan-2014 Alan Viverette <alanv@google.com> Allow Views to specify a theme override

During inflation, any view with a theme attribute will wrap its context
with a theme override. Child views inflated during recursion will inherit
the wrapped context.

BUG: 12178430
Change-Id: Icba019d1c4f4f7e1a66d19dd402038defb42b7a6
/frameworks/base/core/java/android/view/LayoutInflater.java
eb14ccf0202b3050830523865e147b2dcfa819ba 07-Jan-2014 Alan Viverette <alanv@google.com> Revert "Allow Views to specify a theme override"

Inheriting the parent view's Context breaks RemoteView inflation.

This reverts commit dd9233253b88d86473403d5b63c72e223b5e40bd.

Change-Id: I1c9a940a31169cd42b7356ad58548597a2efbb24
/frameworks/base/core/java/android/view/LayoutInflater.java
dd9233253b88d86473403d5b63c72e223b5e40bd 04-Jan-2014 Alan Viverette <alanv@google.com> Allow Views to specify a theme override

During inflation, any view with a theme attribute will wrap its context
with a theme override. Views inflated using a parent will inherit the
wrapped context.

BUG: 12178430
Change-Id: I3448e5174e94c19960a1e21df5bd6127d0d33c07
/frameworks/base/core/java/android/view/LayoutInflater.java
430742f09063574271e6c4091de13b9b9e762514 12-Apr-2013 Chet Haase <chet@google.com> API and doc cleanup, plus small animation/UI features

Adding features which round out the animation APIs (missing
getters, etc.). Also fix doc typos.

Issue #8350510 Add APIs needed for future animation capabilities

Change-Id: I063736848ba26e6d6c809b15fc3a103c74222f46
/frameworks/base/core/java/android/view/LayoutInflater.java
09f7b93a184d12e5ed584206d903982b3e0915e5 10-Apr-2013 Romain Guy <romainguy@google.com> Instrument views inflation in systrace

Change-Id: If3cd80bc430893c701432f165b4c1f5943a4143c
/frameworks/base/core/java/android/view/LayoutInflater.java
579e14016c4a972e70cd2bd0c6d89bbd7e9e941c 19-Oct-2012 Dave Burke <daveburke@google.com> Revert "Revert "This restores JB MR0 behavior where the framework throws an exception for improper layouts that are missing layout_width and/or layout_height.""

This reverts commit 57fca90ac65ecfe97acd4c93d442c3db8f815e11

Change-Id: I21b007a7d150a4c23f25a706cdba5cb86198198f
/frameworks/base/core/java/android/view/LayoutInflater.java
57fca90ac65ecfe97acd4c93d442c3db8f815e11 17-Oct-2012 Justin Ho <justinho@google.com> Revert "This restores JB MR0 behavior where the framework throws an exception for improper layouts that are missing layout_width and/or layout_height."

This reverts commit dcf59629beed8182759a1068ab8ee997935bef82

Change-Id: I27426a0ffe993973ffb0b05ce1ed3afe73fcd87d
/frameworks/base/core/java/android/view/LayoutInflater.java
dcf59629beed8182759a1068ab8ee997935bef82 17-Oct-2012 Jim Miller <jaggies@google.com> This restores JB MR0 behavior where the framework throws an exception for improper layouts that are missing layout_width and/or layout_height.

Revert "Revert "Revert "Fix for bug 6050753."""

This reverts commit 6868d6f349610c15256471cc3d5fa708cbfd5f1d

Change-Id: I8843d92dba14c82f06d9ee59517cf11b2abbbf04
/frameworks/base/core/java/android/view/LayoutInflater.java
6868d6f349610c15256471cc3d5fa708cbfd5f1d 16-Oct-2012 Mathias Agopian <mathias@google.com> Revert "Revert "Fix for bug 6050753.""

Emergency revert -- fix reboot loop.

This reverts commit 8e63bcc63fd002231f8391af8982eeb235d096c8.

Change-Id: I4373b867d756de09cdf6aa0aba9e6ff8f47bcdbc
/frameworks/base/core/java/android/view/LayoutInflater.java
8e63bcc63fd002231f8391af8982eeb235d096c8 15-Oct-2012 Romain Guy <romainguy@google.com> Revert "Fix for bug 6050753."

This reverts commit c29f031598811486d83f418fd08fbfe1fc41788a.
/frameworks/base/core/java/android/view/LayoutInflater.java
0597161ee43cfaa7dbe14691a134fb358a00317a 31-May-2012 Philip Milne <pmilne@google.com> Merge "Fix for bug 6050753."
b27b7a152437d6ebb4f2a2700858b69634c00acd 03-Apr-2012 Jeff Sharkey <jsharkey@android.com> Let ViewStub be used in RemoteViews.

Specifically, this carefully ensures that ViewStub.inflate() uses
the restricted LayoutInflater from RemoteViews, which has a filter
to enforce the @RemoteView annotation.

Bug: 2541651
Change-Id: I341aacbf6029cdd717a894eb084760c6ec224786
/frameworks/base/core/java/android/view/LayoutInflater.java
93dc642eaf48e3db58c4929df26283fbc5fd663f 24-Feb-2012 Scott Main <smain@google.com> docs: fix misc bugs from external tracker

Change-Id: I2be617be23d0ac50baabac561d510633fa9f162a
/frameworks/base/core/java/android/view/LayoutInflater.java
c29f031598811486d83f418fd08fbfe1fc41788a 23-Feb-2012 Philip Milne <pmilne@google.com> Fix for bug 6050753.

The method:

TypedArray: getLayoutDimension(int, String)

throws an undocumented exception when either the width and/or height
attributes are undefined.

See the bug report above for reasons why this was deemed unhelpful both
in the tools area and to developers in general.

Fix by:

1. Documenting the conditions under which the method raises an exception.
2. Deprecating the method, advising callers to supply a default instead.

Additionally, redefine the:

ViewGroup: setBaseAttributes(TypedArray, int, int);

methods to provide the appropriate defaults in ViewGroup subclasses as
advised above.

For the platform layouts the default value is WRAP_CONTENT (and is
defined in the ViewGroup.LayoutParams class). The special cases
are accomodated in LayoutParams subclasses in the following cases:

Subclass width height

FrameLayout.LayoutParams: MATCH_PARENT, MATCH_PARENT
TableLayout.LayoutParams: MATCH_PARENT, WRAP_CONTENT
TableRow.LayoutParams: MATCH_PARENT, WRAP_CONTENT

Change-Id: I335a3bd8e2d7f7866692898ed73492635a5b61ea
/frameworks/base/core/java/android/view/LayoutInflater.java
7f9f99ea11051614a7727dfb9f9578b518e76e3c 11-Aug-2011 Xavier Ducrohet <xav@android.com> Make some methods/fields package private so that layoutlib can access them.

Change-Id: I4aeadfbaf8a4f6a459fa19937c21ac23d9e5fb64
/frameworks/base/core/java/android/view/LayoutInflater.java
9c1223a71397b565f38015c07cae57a5015a6500 17-May-2011 Romain Guy <romainguy@google.com> Improve LayoutInflater's compliance.

There are standards, we should do our best to implement them
properly.

Change-Id: I83a7dc0651795d09b19d536c17b6aefc2eca5c81
/frameworks/base/core/java/android/view/LayoutInflater.java
8691b7243d40d5ef0ab94b8d5f204635d36bf1c4 28-Jan-2011 Dianne Hackborn <hackbod@google.com> am 10e4148b: Merge "Fix issue #3291173: Problem report for NewsRoom - RSS News Reader" into honeycomb

* commit '10e4148b62c9bfed945c1bcea9dd5eea2a17b0d0':
Fix issue #3291173: Problem report for NewsRoom - RSS News Reader
420829ef78c5d86e470fc445279c7c10be6b5dbe 28-Jan-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3291173: Problem report for NewsRoom - RSS News Reader

The framework had started using the LayoutInflator's factory
for itself, which breaks apps that want to use it. Add a hack for
the framework to insert its own private factory.

Also fix a deadlock in the system process.

Change-Id: Iaf80186a5d7e4029faf89e968e184abdaabe514a
/frameworks/base/core/java/android/view/LayoutInflater.java
af6295869051ad351070354bff9f01e5e65ea824 12-Jan-2011 Romain Guy <romainguy@android.com> am 9688fdf5: am fcf3d12d: Merge "Typo in Javadoc"

* commit '9688fdf51edb82a73e1a6d436bf7bce706c049fb':
Typo in Javadoc
bd6fda11d287ba8ac749e06053dc9488653d1471 08-Jan-2011 Christian Mehlmauer <FireFart@gmail.com> Typo in Javadoc

Change-Id: I911ce02cab178f64aab222e4abcd25d113d75ec5
/frameworks/base/core/java/android/view/LayoutInflater.java
625ac271f80777668f832a344486a6fcdc06d0ae 18-Sep-2010 Dianne Hackborn <hackbod@google.com> 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
/frameworks/base/core/java/android/view/LayoutInflater.java
5fcfa52d60e1ca7674fbb6d8e90979f267347c18 26-Aug-2010 Dianne Hackborn <hackbod@google.com> am efd05ea6: am 0a7f5fc4: Merge "Fix issue #2951784: Launcher crashes on startup" into gingerbread

Merge commit 'efd05ea69a53d73d2dacacd74f6a420cac8ef97b'

* commit 'efd05ea69a53d73d2dacacd74f6a420cac8ef97b':
Fix issue #2951784: Launcher crashes on startup
9dae48e3992521f104cde7c916ed1fb5ee1ecb54 26-Aug-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2951784: Launcher crashes on startup

Change-Id: I98aedacce9a7d6b8bc168f39ea5489b40dc0ec8d
/frameworks/base/core/java/android/view/LayoutInflater.java
c8f8497b9cac63a923dbdb1c08e247ba32c19e5e 26-Aug-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 66d633d2 to master

Change-Id: I6c38d7c4d127954dfca17082215c587a3cd4a586
7e269644fcc319835f1e7f762f3cbd8087e3e22f 26-Aug-2010 Dianne Hackborn <hackbod@google.com> Don't retain global ref to last inflated context.

Also rework URI permission granting to support upcoming
clipboard use.

Change-Id: I9842920350955531c5a511c2ecc5215e8c783343
/frameworks/base/core/java/android/view/LayoutInflater.java
e6ac8b9aade9443ab8456c8f7a47cdfba3b70266 17-Jun-2010 Gilles Debunne <debunne@google.com> Removed API changes from CL 54712.

onLoadClass(Class ) was replaced by onLoadClass(Class<?> ) in CL 54712.
This changes the API and may introduce errors in users' implementations.

Change reverted.

Change-Id: Ie578a444168423959b44857f22e13f004e108965
/frameworks/base/core/java/android/view/LayoutInflater.java
3030193dc179b3010f2dd3bffe9c1dec54da38fc 17-Jun-2010 Gilles Debunne <debunne@google.com> Removed warnings in LayoutInflater.

These changes are similar to those of CL 49296. They do not include the
generic fixes done on GenericInflater.java, which had issues and broke the build.

Added a asSubClass method in LayoutInflater which will (correctly) throw a
ClassCastException when the inflated class is not a View subclass.

Performance testing on these changes showed a 10% performance improvement,
which is still to be explained.

Change-Id: Id4d3b45f0945baccdbbda15fcce095e855b23c9a
/frameworks/base/core/java/android/view/LayoutInflater.java
9295ada0ec89fa7a666be4a2f1006a4b722adf4f 15-Jun-2010 Romain Guy <romainguy@google.com> Allow the use of styles with LinearLayout, make "useLargestChild" attr public.

Change-Id: I044f3f5bd9b90c684ded7a37ff85e3aa8d15af96
/frameworks/base/core/java/android/view/LayoutInflater.java
76f0ce1fe4b10a67fb4c037a89024cc134ccb1c1 04-May-2010 Gilles Debunne <debunne@google.com> Revert "Merge "Raw types warnings removed.""

This reverts commit 9794ca60d745757d882d456e653a2dfe41cbb6ff, reversing
changes made to d3f9051c85ffdf50d800b914c8a2def73ffa5bf3.

Change-Id: I39cebc7e92d3604941d66b09bd7b899d06f703fb
/frameworks/base/core/java/android/view/LayoutInflater.java
9afed28629e9a35d341a39f8b4ee21b418079263 21-Apr-2010 Gilles Debunne <debunne@google.com> Raw types warnings removed.

Raw types replaced. Added a asSubClass method in LayoutInflater which
will (correctly) throw a ClassCastException when the inflated class is
not a View subclass.

Reduced the number of warnings in GenericInflater, but those remaining
are valid. A lot of unsafe class casts happen between parent (P) and
item (T) types that will generate runtime errors if the XML is not valid.

Change-Id: I887fd67769a51ab54c6092e1270dbe3bfb6313ca
/frameworks/base/core/java/android/view/LayoutInflater.java
d03b880836bcc4fae83a95458e0709cd45aa6313 16-Sep-2009 Romain Guy <romainguy@android.com> Change Theme.Light's background back to pure white.

Go away gray!

Change-Id: Ice59e585bfd01c02c0fa7fd74a8b13e548248f9e
/frameworks/base/core/java/android/view/LayoutInflater.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/view/LayoutInflater.java
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/view/LayoutInflater.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/frameworks/base/core/java/android/view/LayoutInflater.java