| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
Emugen is a tool that can be used to generate code that
deals with marshaling/unmarshaling request to/from a wire-protocol.
Its input is an API defintion files and its output is C++ source
code for the client (caller) and the server (callee) sides.
See README file for more details.
Change-Id: I45beea6657fae0887d2b4d92933213ecc20d2525
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
This adds or changes no functionality.
It just exhibits the bug from issue 14393 which will
be fixed in the next CL.
Change-Id: Icff2023120014b422c002efde8f20175ff52e266
|
|\ \
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Two fixes for Extract as Include:
(1) After extracting the view fragments from the source layout, save
the layout file. This is necessary in order to make the "Show
Included In" functionality work on the newly extracted fragment,
since the include-finder which identifies candidates for inclusion
is triggered by file saves, not buffer edits, and secondly even
the Show Included In facility itself requires the outer buffer to
be a saved file, not an edited buffer since the parser reads from
disk.
(2) Insert a space after the closing quote in the include string; this
could lead to broken XML in some instances.
Change-Id: I10ede72ef40dc0afaa93322637397245ac9a54ee
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| | |
If there isn't enough room to show the margins, make the margins
smaller. This gives more useful layout room when you are dealing with
large screens.
Change-Id: I6f967dbe6b18ca5ee85cc04db88d903cb976e851
|
|\ \
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Give anttasks.jar a proper manifest with jar dependencies.
Update the manifest of sdklib.jar with the common.jar dependency.
The pre-setup section of build.xml has changed over time
and really we should be able to control it so move it in
$SDK/tools/ant/pre_setup.xml and import it into build.xml
Change-Id: Iab707deccc0cdbe8d1a9db052ee6fb0762853394
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This changeset fixes a couple of layout actions bar issues:
(1) Refresh the actions bar after running one of the layout
actions. This for example fixes the issue that if you click to
toggle the layout orientation then the baseline button will appear
for horizontal layouts.
(2) Fix an issue with the lazy-initialization of dropdown menus; they
weren't actually initialized lazily because the code to determine
whether a choice list should be a dropdown or a radio group would
cause initialization.
(3) Fix layout gravity on RelativeLayouts; it was reading/writing the
attribute "layout_gravity" instead of "gravity".
Change-Id: Ic41158257b3938a2e6daa8714dcd15d6bf21fa2f
|
|\ \ |
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Remove the code I added recently which hides the scrollbars when they
are not enabled. While I want to restore it later, I need to guard
against a possible scenario where showing the scrollbars causes the
viewport size to change which can in turn cause the scrollbars to be
hidden recursively. For R10 let's play it safe.
Change-Id: I3fa30035ecbede55fd6e0063f222efc6fead386f
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Make the zoom level of the layout editor persistent across IDE
sessions. This is particularly useful now that we are dealing with
larger screens, such as WXGA, where you typically need to zoom out
(zoom to fit) in order to see the whole layout, and it's annoying to
have to do this every time you open the IDE.
Change-Id: Ib062a6a9f9291445978b3cfae03c120e4f2bf386
|
|\ \ \
| |_|/
|/| | |
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- SourceProcessor didn't empty is toCompile/removed file list
when doing a full build, meaning some files were compiled
several times.
- renderscript processor would always indicate that it generated
resources even if that wasn't the case (no file or broken files)
triggering a res compilation even if needed. Res compilation
typically trigger a post compile refresh that triggers another
build (which normally has no impact) but this new build
also triggered a res compilation through the same issue ending
with a build loop if a rs file was broken.
The SourceProcessors now don't return a static compilation type
but a true value based on what they did (or failed to do).
- the post compiler build now properly stops executing if there are
problem markers from previous builders, including the JDT one.
Change-Id: Ida610dbe793f0df40b586572c52d33e4c93adff2
|
|\ \
| |/
|/| |
|
| |
| |
| |
| | |
Change-Id: Idf2ce283466dcc92ba8877d4e8166f2d64b319f4
|
|\ \
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The selection hints, which for example display the constraints when
you are in a RelativeLayout, are painted below or to the right of the
canvas. The positioning of this text was based on walking up the
ViewInfo hierarchy and taking the root element's bounds as the bounds
of the canvas image. The text was then placed below or to the right
of this image.
This no longer works with honeycomb since we now paint an action bar
and a system bar, and the bounds of these are not included in the root
ViewInfo, so as a result the selection hints were painted on top of
the system bar.
This changes the algorithm to use the image bounds itself rather than
the view info bounds.
Change-Id: I0e6e04608fb55af476c58a33785d5a7d5ac511c1
|
|\ \ |
|
| | |
| | |
| | |
| | | |
Change-Id: Ide739f4e3edddb3ab04519262eee34d28e18bd16
|
|\ \ \
| |_|/
|/| | |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The path of the executable should not be quoted.
Linux/MacOS actually don't work if anything is quoted so
only quote on windows.
Strangely aapt is not affected by this so don't touch it for now
Change-Id: I148f229d941baf722542ff72ee683fda212ec327
|
|\ \ |
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| | |
When opening new layouts, or opening layouts saved with older
versions of ADT, pick a render target that supports layoutlib 5. Many
features (such as layout rendering, palette previews etc) work much
better with layoutlib 5.
Change-Id: I0c577e76a2447985be0ab9bd2603618e8f152873
|
|\ \
| |/
|/| |
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a new toolbar above the layout canvas (and to the right of the
palette). This toolbar shows various layout-related actions on its
left, and the canvas zoom controls on the right. The zoom controls
have been moved from the configuration panel, which has also been
reorganized a little with three of the dropdowns moved up to make more
horizontal width and take the place of the old zoom controls.
The toolbar items vary based on which layout is "active". The active
layout is the parent layout of the selection, or the root layout in
the canvas if there is no selection.
Some examples:
- In a LinearLayout, there are radio-button icons for switching
between horizontal and vertical orientation, and for toggling
baseline alignment
- There are toggle buttons for toggling between wrap_content and
match_parent (or fill_parent) for the layout_width and layout_height
properties
- There is a dropdown menu in LinearLayout and RelativeLayout which
lets you set the layout_gravity to one of the dozen gravity settings
- There is an action button which brings up a margin chooser dialog
where you can configure the margin settings for the currently
selected elements for layouts that support margins
There will be additional actions here in the future.
This changeset also adds a few new MenuAction subclasses and factories
to make it possible to do ordered lists of choices. It also adds
sorting keys to make it easier for parents and children to interleave
their actions with simple sorting keys rather than having to append,
prepend or merge their respective result lists. In a follow-up
changeset I will replace the context menu code to use these, as well
as attempt to make all actions stateless such that they can be cached
and reapplied for different targets.
Some misc cleanup.
Change-Id: I6a87144fcfd1d359e5561829bd5d63c852f16970
|
|\
| |
| |
| | |
Change-Id: Iae5b1e83937acecc7b31c00d949afb5eee150b19
|
| |\ |
|
| |/
| |
| |
| |
| |
| | |
This allows us to get useful stack trace from external users.
Change-Id: I290a255b7bb28d6d32eee9d62cb176414d833a1c
|
|\ \ |
|
|/ /
| |
| |
| |
| |
| | |
TRANSPARENT -> CUSTOM_BACKGROUND_COLOR
Change-Id: Iaa521231983de4d1008a7bb86b923f295d295a65
|
|\ \ |
|
| | |
| | |
| | |
| | | |
Change-Id: I852a3d68299629addf53890a8b42d5c0e72579f3
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | | |
Change-Id: I081c057fd7c87239cdd5b4b6ddccf949a9cb2832
|
|\ \ \ \ |
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Disable palette previews when the target SDK does not have layoutlib 5
(or more accurately, the custom background support required by the
palette, which will be backported to earlier SDKs.)
Change-Id: Ib572fd070eae995541a680eaccd58411d35066b2
|
|\ \ \ \
| |_|/ /
|/| | | |
|
|/ / /
| | |
| | |
| | |
| | |
| | | |
This allows us to get useful stack trace from external users.
Change-Id: I588ba6284f7f62cb7a7b73405e805171f350adab
|
|\ \ \
| |/ /
|/| | |
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The layout editor has special handling for the "root" element, which
for example suppresses hover-highlighting for the root and a click
will initiate a marquee selection rather than a drag.
Some layouts wrap the layout inside a GestoreOverlayView. This does
not work well since the "real" root is its child, which will not be
treated as a proper root.
This changeset fixes this situation by handling this scenario such
that both the gesture overlay and its child is treated as the root.
Also make fix such that the icon in the outline also works for the
gesture overlay.
Change-Id: Ia96d2bc402958b44f9f82646ff0fc4552ab0cf14
|
|\ \ |
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Palette previews are rendered on top of the default theme
background. For certain custom themes, where a gradient or image is
used, this can look terrible, since the preview images will include
portions of the gradient or image.
This changeset improves this situation by taking advantage of
layoutlib 5's ability to override the background. It now uses theme
resolution to find the background color, and paints the previews with
the custom background override to force this color. In addition, if
the theme background is not a color (but a gradient etc), it uses
layoutlib5's new render-drawable support to generate the background,
and it extracts a suitable color from it (currently, the center
pixel.)
This fix also ensures that the foreground color (used to paint labels
for the widgets that cannot be rendered, such as layouts) has a
suitable contrast with the background. After computing the background,
it computes the brightness, and if the foreground and background
differ less than 25% in brightness, then the foreground color is
forced to white or black depending on whether the background is light
or dark.
This changeset also contains a bugfix for a palette initialization
problem where in some cases the palette could come up empty (because
the code which attempts to avoid doing extra work when reloadPalette
is called repeatedly could be tricked by a scenario where the SDK
target does not change but its "have target data" status did.)
The open palette category is now preserved across palette refreshes
(which occur when you change palette modes or category/sorting
options, along with theme and render target changes).
Finally, the changeset also turns off the new window decorations
(system bar, action bar, etc) when generating preview images for both
palette previews and for drag & drop.
Change-Id: I8b8766ad45f2cb6a4a6b79a24c31ed0f08d1e826
|
|\ \ |
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The ResourceChooser only supported adding new Strings. This changeset
lets you add other types of value resources -- dimensions, integers,
etc. It will create a new file in res/values/ if necessary, based on
the plural form of the resource name (e.g. for "string" resources it
will create "strings.xml", etc). For existing files, it will add a new
entry to the existing file, using the same indentation as the last
top-level element in the file.
Change-Id: I09272ff52af38a8a7a059d455f398befbe0d1abc
|
|\ \ |
|
|/ /
| |
| |
| | |
Change-Id: I5faa155393466e1bc4b2fc1e9417cde91a8be456
|