commit | 7f7752439543db6e13c599bdd10cb10254c24528 | [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 | 8161d572cce9194745972fc3fde670a6c6412614 | |
parent | c9f32f23327cbeeb50f0d494d01c8d6784720bc6 [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