46d43ccfd8cef75b4315828073c094cf1efb05ff |
|
03-Feb-2012 |
Xavier Ducrohet <xav@android.com> |
Make Layoutlib compile on Java 6. Change-Id: Ic8f0e321c6c218de83664fc01f253a07fa80852c
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.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/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
|
04ce81113107d2bfa0b8248b13145b4cf24cb943 |
|
10-Jun-2011 |
Xavier Ducrohet <xav@android.com> |
Bring in more layout lib changes from hc-mr1. fe051bb2 : Change the way the layoutlib instantiate its XmlPullParser. A lot of the init code was duplicated so I made a ParserFactory class. Also created an extension of the KXmlPullParser to override toString(). This allows easier debugging when dealing with multiple parsers (which is always the case). Also added some (disabled) debugging printf to deal with parser stack as it can be tricky figuring out which parsers are in the stack at which point. 8969147c : Fix case where the int[] attrs doesn't directly match a styleable. In the case of the FastScroller the int[] is a custom mix of attr instead of a int[] that exists as R.styleable.foo. This makes our reflection based mechanism used to find the styleable fail, so instead we search for each attribute separately (like we probably should have done from the beginning). 0c264b35: Fix various cases of getDimension to report error if unit is missing. if getDimention###() is called for a string that has no unit, then an error is output through LayoutLog, but the rendering keeps going by using dp as a default. 0beb7eea: Make (Bridge)TypedArray.getInteger() call out to getInt() Only getInt() resolved attribute flags/enum and I'm not sure why there's two to begin with.
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
|
05b7b69c6c5d418e18db644feed1ec2ca83291cc |
|
17-May-2011 |
Xavier Ducrohet <xav@android.com> |
LayoutLib: support the new baseline/margin query API. Change-Id: I856489df655960820b8eaa4c6179515a5c069b00
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
|
2fae858db55fc6984ef923a6226b9408c37c72cb |
|
29-Mar-2011 |
Xavier Ducrohet <xav@android.com> |
LayoutLib: implement data binding for most AdapterView Change-Id: I27be96ed2c37573eb22cfbb391d96b6137b3df8c
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
|
c5aeac7f157e3cb9e29ab8c126f74e26493501f5 |
|
06-Apr-2011 |
Xavier Ducrohet <xav@android.com> |
LayoutLib: Fix issue with rendering mode. When the layout content is embedded inside a decor layout to emulate system bar (top or bottom) and title bar (or action bar) then the code computing the full required size based on the RenderingMode would fail because the decor layout would prevents the content layout to take as much room as possible. There is also an issue with the way we know render dialogs as the dialogs usually as a frame with some padding and the previous measurements would not take into account the dialog padding when increasing the screen size. This fix makes the code measure the size of the content layout in the normal rendering, and then separately from the root layout with the proper MeasureSpec to let the content grown. The difference in size is then added to the screen size. Bug: http://code.google.com/p/android/issues/detail?id=15892 Change-Id: Ibb9ca2a67c6c450d10d9f9a8050536e094650f8b
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
|
10df650f0d4bdf086dae9ac29fafd8a1ded06c23 |
|
17-Feb-2011 |
Xavier Ducrohet <xav@android.com> |
LayoutLib: add support for layout_only render. Change-Id: I1cd791cf9560156c1ac488f8e454240c84e29cc6
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
|
02d2b5a4031c80bfe1012ce2f4f7b3695762abd9 |
|
14-Feb-2011 |
Xavier Ducrohet <xav@android.com> |
LayoutLib: When possible ensure parsers are popped from the stack. Some parser consumers (seems to be mostly resource inflation) don't use the pull parser up to the END_DOCUMENT tag, making the parser not pop itself from the parser stack automatically. This is likely due to the XML resources being very shallow (1-2 levels max), and the inflater just reading the content that it expects instead of parsing till the document is done. This ensures that *some* parsers are pop'ed from the stack when used. Some other parsers we don't really control and hope the user will parse till END_DOCUMENT. Change-Id: Ie1f5762983fed2b2ae97b896218ae12b493e7ad9
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
|
abc33e014d4490dc993d1453e2589f538dbd7bbe |
|
08-Feb-2011 |
Xavier Ducrohet <xav@android.com> |
LayoutLib: fix the background of title/action bars. The bars are supposed to sit on top of the window so that if they are transparent (which is the default case for the action bar), the window background shows through. Fix this using a layout to represent the window content (all but the system bar) in which the title/action bars and the layout content sits. This layout receives the windowBackground drawable. Change-Id: I8072c5ff52f585fa32acb589d8526e1c13cbcd94
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
|
b0d34f9c99cbd43e8238c5952b19d032f02dd168 |
|
05-Feb-2011 |
Xavier Ducrohet <xav@android.com> |
LayoutLib: split RenderSession's base method into RenderAction. This will allow us to create RenderDrawable that extends RenderAction. Change-Id: If9cd350453ceffae4859a925a7b436502b311f9c
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
|
1126422ee1f532d8582a4e3b56dbfe505c15e775 |
|
05-Feb-2011 |
Xavier Ducrohet <xav@android.com> |
LayoutLib: update to the new API. Change-Id: Ice028933cd2270c81c3d17f7bef7c5a9d14bd802
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
|
bbbb8326020368958a3f1d248878329e9d6b10c0 |
|
28-Jan-2011 |
Xavier Ducrohet <xav@android.com> |
LayoutLib: render system/title/action bars. Also a few generic fixes in the layoutlib itself to support this. Change-Id: Ie3f24c9056bd3cc72f39f8a4f2c0861be15bff55
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
|
33758ef8c98efb669c65eb9404b99ee5df09c6b5 |
|
03-Feb-2011 |
Xavier Ducrohet <xav@android.com> |
LayoutLib: Fix some rendering issues Change-Id: I662a39a783de5bc7f3063f46cedaab11c7e6496e
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
|
345f866bfd09476fd62aa10345a0670cc110b63c |
|
02-Feb-2011 |
Xavier Ducrohet <xav@android.com> |
Make TimePicker/DatePicker/CalendarView render in Eclipse. Change-Id: Id5313a6f0f53bf45f6eaabc0e10fcf0660eeac08
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
|
b353495192ba1acce94b8ab8aeeffe3c9a3bcfac |
|
28-Jan-2011 |
Xavier Ducrohet <xav@android.com> |
LayoutLib: update with Pair API. Change-Id: Iba945153f7544872ea84e3311584223aea740e2e
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
|
35ea7cd4c0c89122fda0b57af20061645082ffb9 |
|
28-Jan-2011 |
Xavier Ducrohet <xav@android.com> |
LayoutLib: Update with the new resource map APIs. Change-Id: I30d83c2bb4569513f4f5e22670cffe938706f105
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
|
16584225125acba18b74920b902c798dfead0328 |
|
28-Jan-2011 |
Xavier Ducrohet <xav@android.com> |
LayoutLib: Properly compute available space to layouts. Also display placeholders for status/title/action bars depending on if the app is a tablet and its theme. Change-Id: I651c1a2e5cfde165e004c11b236e6df056853dec
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
|
31fd1cf7697ef777b41c7a6a20e37ff5d573d732 |
|
27-Jan-2011 |
Xavier Ducrohet <xav@android.com> |
LayoutLib: put a default image on the quickcontactbadge. Change-Id: I64b3f4004801ec03f374460384f9a492e66bfaf0
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
|
5a82d8c58bf91c357c37a82b9f5e5c26f676d847 |
|
27-Jan-2011 |
Xavier Ducrohet <xav@android.com> |
LayoutLib: properly erase the bitmap when rendering a new session. This fix the issue where going from a full theme to a dialog theme would show the dialog on top of the previous rendering. Change-Id: Ib52b9719f44b04969423547b9de8d039f90b6f46
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
|
7d7016e72431ad7ee595d857a19231c69efeb6de |
|
26-Jan-2011 |
Xavier Ducrohet <xav@android.com> |
LayoutLib: return ViewInfo for all merged items + Build init. android.os.Build is now initialized from the build properties parsed from the SDK build.prop file. Change-Id: If16953215ca90fb0beacb51bf405b89a5c8a34fa
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
|
9d0577ec0c285c055da4c910dcb597fdae5bc5e5 |
|
18-Jan-2011 |
Xavier Ducrohet <xav@android.com> |
LayoutLib: properly configure ApplicationInfo with targetSdkVersion. Change-Id: I1bfef890206552843d1a7a8d0564741f2a37494f
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
|
796992a942f3508a15ee62d34d6c7ec5de045d83 |
|
18-Jan-2011 |
Tor Norbye <tnorbye@google.com> |
Allow TabHosts to have no children in the tabcontent widget Replace the code which throws an exception if there are no children in the FrameLayout that is the tabcontent, with code to add a single dummy tab. This makes the TabHost renderable in those scenarios where the real tabs are added dynamically rather than via XML. Change-Id: I72442bd7d40eddd875b3507585c1f372fcae3329
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
|
70552fb92dbc5cb5b1d53b20f92f2a64969a50c4 |
|
17-Jan-2011 |
Xavier Ducrohet <xav@android.com> |
LayoutLib: Update to use the new RenderResources API. Change-Id: Ic64eff3f324c4519da89bab10e6d59f0a9341a04
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
|
d1d6fafc7fc63543b10552dadf202dd6fa40fe6b |
|
16-Jan-2011 |
Xavier Ducrohet <xav@android.com> |
LayoutLib: extract resource resolution into its own class. Next step is to make it a jar that will also live in ADT. The version in layoutlib will be through a prebuilt jar file, like ninepatch. Also add ninepatch.jar inside the layoutlib.jar file. Change-Id: I4a0cc9f2dd99709de6408386054c6d4abae7c824
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
|
51a7e5447de94791c464cda5cc6ebbf616d73c80 |
|
15-Jan-2011 |
Xavier Ducrohet <xav@android.com> |
LayoutLib: update logs to use new data bundle Also change some resource.resolve tags to resource.format Change-Id: I3f0b0d2eb69a5ec98375e4014a3bb1bfceb8c855
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
|
918aaa5717fce6081557c82ce1c439b6922737d5 |
|
13-Jan-2011 |
Xavier Ducrohet <xav@android.com> |
LayoutLib: Use the new log tag constants from LayoutLog Change-Id: I29dd578ae16405358d3673caf13528be393f0967
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
|
56222cfbe9973c518f7e8c9113c614de80b5a4b2 |
|
13-Jan-2011 |
Xavier Ducrohet <xav@android.com> |
LayoutLib: use tags in logs. Change-Id: Ib85272249d285ecef409bf063903bcd91514a424
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
|
6c740cf71e5ce5ba7c8493c545c3a57c57ac7024 |
|
11-Jan-2011 |
Xavier Ducrohet <xav@android.com> |
LayoutLib: Improve error reporting. Change-Id: I37cad7e2efb959202960c57b271c55c759867139
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
|
b3830b8978aa05746912210932e26ebf1836aab5 |
|
11-Jan-2011 |
Xavier Ducrohet <xav@android.com> |
LayoutLib: only support animator-type animations. Change-Id: Ia3609fc5d11555190bc323d61a3577144a4692fd
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
|
eb87b3bb53a8a9e9a246b4b70ea40172e2229c85 |
|
11-Jan-2011 |
Xavier Ducrohet <xav@android.com> |
LayoutLib: fix some issue with resource resolution. TypedArray.getResourceId() is not only about id/foo, it can be any type of resources. Change-Id: Ia5e147bc078bb349a3fa500a04c596ae44ea34ce
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
|
479101a9b4142d21d42351684bc9bc65ec3471be |
|
09-Jan-2011 |
Xavier Ducrohet <xav@android.com> |
LayoutLib: Fix moveChild animation. Only support animation for view move inside the same layout. Also fix animation thread to property support multiple animation running at once. Change-Id: I45cad84e7b9f3a4f281c956d32934eb74e807afb
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
|
46a329244db12b6f7afc3c9a6409d420241a1058 |
|
08-Jan-2011 |
Xavier Ducrohet <xav@android.com> |
LayoutLib: finish Typeface and unload them in dispose. Change-Id: I3a48f84678f62d669d303fc73b041bb3fe5f333b
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
|
7550ec1d8e526c4ae8c0bb08b06e1b6e799eacec |
|
08-Jan-2011 |
Xavier Ducrohet <xav@android.com> |
LayoutLib: remove fade in/out transition on moveChild. Change-Id: I69a70ecb165f19feca55fc30a3f48ebea896daa3
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
|
d7cc1244d7f0901688545c8535fa531fbb68669a |
|
08-Jan-2011 |
Xavier Ducrohet <xav@android.com> |
LayoutLib: fix moveChild again. Change-Id: Ib69a06e44be1e332f0f43c36c795c86270cb1b71
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
|
2b9c38ab62abc8d5b2f956e961087f259caf25ff |
|
07-Jan-2011 |
Xavier Ducrohet <xav@android.com> |
LayoutLib: fix animated moveChild. The child can only be added to the new viewgroup after it's been removed from the previous one, which is delayed if there's an animation. Change-Id: I9123a2670d0d17b3eb6f8f89085ebab8ca2b800f
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
|
19a021038f2f4683dddef651543d7298f5bd7218 |
|
16-Dec-2010 |
Xavier Ducrohet <xav@android.com> |
LayoutLib: Update layoutlib with revised API. Change-Id: I78929df621f48e85d9cbefe1f5590f9ce99bbaff
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
|