commit | 697bc8d68e22b4504d9b78772cfb753c59d76729 | [log] [tgz] |
---|---|---|
author | Xavier Ducrohet <xav@android.com> | Thu Nov 04 17:15:54 2010 -0700 |
committer | Xavier Ducrohet <xav@android.com> | Mon Nov 08 18:38:12 2010 -0800 |
tree | 99fd2d2ca4ed2cd1b2a027428991a075179ebb8b | |
parent | 571dce70558cdbeda1eeda13f20f84255fefe9ee [diff] |
Layoutlib: Load fragments This change does the following: - Make the bridge context extend Activity instead of Context so that it can act as a view factory. This is needed because the Activity is used as factory for Fragment objects. - Override the default Fragment.instantiate(...) method through a delegate. This is done to load the Fragment classes located in the project (similar to custom views). Change-Id: If62e7c9ff2b7585677077ad825aa1c3591d1b5e0