summaryrefslogtreecommitdiffstats
path: root/tools/layoutlib/bridge/src/android/view
Commit message (Collapse)AuthorAgeFilesLines
...
* Encapsulate the ViewRootImpl's handler.Jeff Brown2012-02-151-1/+1
| | | | | | | | | | | | | | | This change makes it much easier to make sense of the messages that get posted to the ViewRootImpl's handler by encapsulating their point of dispatch within the ViewRootImpl itself. As part of this change, the View.AttachInfo now carries a reference to the ViewRootImpl itself, which simplifies some code that used to try to find the ViewRootImpl by getting the root view's parent. In principle, it might have been nice to hide the ViewRootImpl from the View hierarchy but in practice the two were coupled in many ways. Change-Id: I51ebccdf5f8c8c505cd6f17cdf594174d041dc54
* Make Layoutlib compile on Java 6.Xavier Ducrohet2012-02-021-6/+19
| | | | Change-Id: Ic8f0e321c6c218de83664fc01f253a07fa80852c
* Layoutlib: add support for ITextServicesManager.Xavier Ducrohet2011-10-033-0/+9
| | | | | | | | | | | | This include a fix in layoutlib_create to properly handle delegating a static method of an inner class (was broken and only worked on non static method). Added a few comments here and there to *_Accessor classes so that it's a bit more obvious what they are for and how they are used. Change-Id: Ifc31dd1a006393bb0c08e22b6a17f500dd62e090
* LayoutLib: Fix native delegate for Display.Xavier Ducrohet2011-09-291-2/+2
| | | | Change-Id: If097cae2309d340162b3bac1d0f6a2289635adca
* Make some methods/fields package private so that layoutlib can access them.Xavier Ducrohet2011-08-116-17/+364
| | | | Change-Id: I4aeadfbaf8a4f6a459fa19937c21ac23d9e5fb64
* Misc layoutlib fix in preparation of the access change in framework code.Xavier Ducrohet2011-08-011-32/+6
| | | | Change-Id: I873adb7345514be6daa5c4fea4ebabb515f203e2
* Layoutlib: misc fix + start of AndroidBidi support.Xavier Ducrohet2011-07-191-0/+13
| | | | Change-Id: If2ce0b683da8cce01679322d503eed8dd474e521
* LayoutLib: updated fake accessbility manager and ensure there's an ↵Xavier Ducrohet2011-07-122-0/+91
| | | | | | | | | | | | | | | InputMethodManager We had replaced the accessibility Manager but it lacked some new API. Obvisouly this is fragile and should be fixed, but this works for now. After fixing this there was another issue with the lack of InputMethodManager. To fix this I had to create an implementation of IInputMethodManager which normally comes from a binder object. I may want to do a similar trick with the accessibility manager later. Change-Id: I28c6494e333f39072f348d0199124efac93256a5
* LayoutLib: Delegate for Display and IWindowManager implementation.Xavier Ducrohet2011-07-121-0/+101
| | | | | | | This allows ViewConfiguration to be properly implemented which is now required for the rendering to happen. Change-Id: I55629689fa8f5f874b43fcac2aa0789ce02d58f4
* Import the Layoutlib from hc-mr1.Xavier Ducrohet2011-06-031-0/+129
| | | | | | This is squash commit of all the missing patches. Change-Id: Ie081c46a173290646deddbde503a720d50c4400f
* LayoutLib: Annotate the custom delegate methods.Xavier Ducrohet2011-02-092-0/+5
| | | | | | | | | | | | | | | | | Every method implementing a delegate needed by the layoutlib_create bytecode modification must now be annotated with LayoutlibDelegate. The methods in the original source code that are delegated are already automatically annotated. Now with the implementations being annotated we can do bi-directional tests and find not only missing implementations but also dead obsolete code. This will be useful when backporting to earlier versions of Android, or when native (non public) method disappear. In fact, the new test detected one such method in Shader. Change-Id: I491708b68ac2736ca5669aa86cd5e930a00f9db3
* LayoutLib: Use special view cookie for include-merge case.Xavier Ducrohet2011-01-241-0/+95
| | | | | | | | All items directly under the <merge> tag now return the view cookie of the referencing <include> tag using a special class for easy differentiation in the calling client. Change-Id: I7a2a4e642be9564f47e256fd1586012497d34792
* LayoutLib: move MockView back into its original package.Xavier Ducrohet2011-01-121-1/+1
| | | | | | | | | | This is used by Eclipse when the custom view is not found. It couldn't find the view in the new package either. We should probably move this logic of creating a mock view into the layout library instead. Change-Id: Ifa1a717cddf7004a7719bb4d0798cd53b43273ea
* Misc fix in layoutlib bridge + View.isIneditMode as delegate.Xavier Ducrohet2010-11-111-0/+31
| | | | Change-Id: Ideab29167e933203da99d4270cebcb777726201f
* Layoutlib: New bridge implementation using the new API 5.Xavier Ducrohet2010-11-112-228/+1
| | | | | | | | | | | | | | | | | | | | Since the new API prepare for stateful layoutlib, major reorganization of the code. New "android" sub-package for all extended android classes. Also moved BridgeInflater in here so that all extended classes are in this package. Only delegates and classes replacing renamed classes are in their original android.* packages. Also created full file for the empty implementations of IWindow and IWindowSession. New "impl" for the dirty work implementation. Main package contains the basic implementation of the API. Most of the code that was in Bridge is now in .impl.LayoutSceneImpl, with the main init/inflate/render code split into the contrustrutor, inflate() and render(). Change-Id: Ie15b15e5a1b2388cd6ef82e518345b1fc02ec981
* Work on fragments in layouts.Dianne Hackborn2010-09-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | - 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
* Fix handling of reference XML file in layout filesXavier Ducrohet2009-08-131-0/+2
| | | | | This allows layout that references animation to properly load in the layout editor in ADT
* Mock ServiceManager and AccesibilityManager to make the view renders in ADTXavier Ducrohet2009-08-121-0/+93
| | | | BUG: 2049348
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-032-0/+326
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-032-326/+0
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-1/+0
|
* Initial ContributionThe Android Open Source Project2008-10-212-0/+327