aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add more theme query APIs to RenderResourcesXavier Ducrohet2011-01-262-6/+63
| | | | Change-Id: Iebde7536a0007898387dc7bb5d943e3767140a3c
* Properly convert the rendered layout images if alpha is needed.Xavier Ducrohet2011-01-264-6/+20
| | | | | | | | | | The layoutlib can specify if the image is rendered as a floating window, and needs alpha. If it doesn't needed it we do a faster convert discarding the alpha which will be better when playing animations in the normal case. Change-Id: I2dbd2d1ae9190207b51978e4a8d77cdff25f3e45
* Merge "Palette with previews, categories and view modes"Tor Norbye2011-01-2522-393/+1972
|\
| * Palette with previews, categories and view modesTor Norbye2011-01-2522-393/+1972
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset contains the following improvements to the palette: 1. Display modes. The palette now supports several different view modes, and you can switch these via the context menu. The modes are: a. Previews. This renders previews for all the views using the current SDK platform, theme, screen density, etc. b. Small Previews. This is like (a), but scaled down to 75% size. c. Tiny Previews. Like (a), but scaled down to 50% size. d. Text + Icon. This shows an icon and the name of the view; this is the same as what the palette has looked like before this changeset. e. Icons only. All the modes, except for the Text+Icon mode, will lay out the views in a row (with vertical centering) to fit as much as possible in the available space for that category. The view mode, along with other view flags described below, are preserved across IDE sessions. 2. An accordion view. The palette is now using an Accordion control, which means it by default will keep a single category open, and it will always ensure that ALL the category labels are visible in the current view without scrolling. Via the context menu you can turn off the auto-close of the previous category. The accordion view uses vertical scrollbars within each category content area, if necessary. The accordion view renders the category headers using open/close folder icons, a bold font, and a background gradient which varies between the normal and hovered states. 3. Categories. The category metadata is now used to organize the views into a handful of different categories. The categories can be enabled and disabled via the context menu. When you turn off categories, you get all the views in a single large list. 4. Alphabetical sorting. By default, the views are now sorted "naturally" (e.g. the metadata provided order, where important views are listed first). You can switch it to alphabetical order via the context menu, in which case the items are listed in alphabetical order, either within their individual categories, or if categories are turned off, the global view list. This changeset also adds a new SWT ImageControl. This is necessary to display the preview images, because the CLabel, which is usually used to display images in SWT, is hardcoded to hide the icon if there is not enough horizontal space to display the full label (even when it has no text label), so for wide preview images the images would simply disappear when the palette was resized. Change-Id: I1e1fe051947809206ef9f3a2dfa2fbeae0341107
* | Merge "Combine DescDragSourceListener and PreviewDragSourceEffect"Tor Norbye2011-01-251-101/+31
|\ \ | |/
| * Combine DescDragSourceListener and PreviewDragSourceEffectTor Norbye2011-01-251-101/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | It turns out that a DragSource listener can also set a drag preview effect, so we don't need to have two separate classes for this; this was slightly tricky because the drag source needs to get the image from the preview drag source effect in order to record the right offsets for the drag. This changeset rolls the two classes into one, the original drag source. Change-Id: I249736c13e49f06886318ea64dc8de40e832d216
* | Merge "Add error message to log if layoutlib init fails"Tor Norbye2011-01-251-1/+5
|\ \ | |/ |/|
| * Add error message to log if layoutlib init failsTor Norbye2011-01-251-1/+5
|/ | | | Change-Id: I5f61733c02002eca9400d5abbfc33393cabd1667
* Merge "LayoutLib API update: build properties and multi ViewInfo results."Xavier Ducrohet2011-01-257-12/+40
|\
| * LayoutLib API update: build properties and multi ViewInfo results.Xavier Ducrohet2011-01-257-12/+40
|/ | | | | | | | | The build properties are needed to populate android.os.Build The multi ViewInfo results are needed to access all the top level children of a merge layout. Change-Id: I49638ae76aaf9e83dc4a0a73c3e7966d7b0a14a3
* Merge "ADT: Support class folders during build."Xavier Ducrohet2011-01-2512-41/+179
|\
| * ADT: Support class folders during build.Xavier Ducrohet2011-01-2512-41/+179
| | | | | | | | Change-Id: If1d6840082f96dd98c8be0658c6ce157b4801bd3
* | Merge "Update widget icons"Tor Norbye2011-01-2527-0/+0
|\ \
| * | Update widget iconsTor Norbye2011-01-2527-0/+0
|/ / | | | | | | | | | | | | | | | | | | | | | | | | When I generated the icons yesterday I forgot to update the background layer; it had a flat gray background and in many cases extended a pixel or two outside the widget foreground bounds. This changeset updates this to have a nicer white-to-gray vertical gradient. It also adds icons for the <merge> and <include> tags (not used in the palette but can show up in the outline), and tweaks the ScrollView and LinearLayout icons. Change-Id: I1a887f7671d099918be7e63839ac76909ff554f6
* | Merge "Add icons for the rest of the views"Tor Norbye2011-01-2534-0/+0
|\ \
| * | Add icons for the rest of the viewsTor Norbye2011-01-2434-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add icons for all the remaining views, e.g. those that don't have rendered previews. A couple of these are scaled down icons from the platform (search for search view, browser for web view, etc), and most of them are somewhat ugly hand drawn placeholders. Change-Id: I32b4e142f613003035c107f58aee7c2ecc2d017f
* | | Merge "Tweak TabHost drop handler"Tor Norbye2011-01-241-4/+7
|\ \ \
| * | | Tweak TabHost drop handlerTor Norbye2011-01-201-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of creating a single tab, create 3 tabs instead, and pick a better id since it's used as the tab label by the designtime TabSpec creator. Change-Id: I35ecb4ec8642431ff76a02d52f5194efd5909774
* | | | Merge "Add a MergeCookie class as a special-case view cookie."Xavier Ducrohet2011-01-241-0/+42
|\ \ \ \ | |_|/ / |/| | |
| * | | Add a MergeCookie class as a special-case view cookie.Xavier Ducrohet2011-01-241-0/+42
| | |/ | |/| | | | | | | Change-Id: I6e2f55cf74a683cb936e16b469e1f5abe5a0fd83
* | | Merge "Icons for various widgets"Tor Norbye2011-01-2426-0/+0
|\ \ \
| * | | Icons for various widgetsTor Norbye2011-01-2426-0/+0
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add in 16x16 icons for many of the widgets. These icons are used in the Outline, as well as in the "Text + Icons" and "Icons Only" modes in the palette. The icons were generated by rendering previews with transparency on, and layoutlib5, with the theme "Theme.Light" (since that sets dark text labels etc). It also used a special version of the rendering config file where for example the label of the TextView is "Abc" in bold rather than "TextView", where there is no text label on radio and check buttons, etc. Some icons were scaled proportionally, others just cropped left or right, etc. Those who were cropped on the right have a small amount of alpha-fadeout on the right to work better in the outline. Change-Id: I419d1c98068696a5bc650060750713e45462f01c
* | | Merge "Add palette category metadata"Tor Norbye2011-01-2414-197/+570
|\ \ \ | |_|/ |/| |
| * | Add palette category metadataTor Norbye2011-01-2014-197/+570
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset contains some background work for the palette preview work, separated out to make that changeset smaller. First, it creates a new metadata XML file, which augments the metadata provided by the platform, defining things like palette categories, a natural order for the views within each category. The older code-based metadata for fill preferences (used to decide how to set the width and height attributes on drop) are also moved into this XML file. There will be more metadata added to this file in the next changeset, where for example XML fragments defining how to render a view for preview purposes will be defined there. Second, change the signature on the view and layout descriptor lists passed around such that we don't have to do instanceof ViewElementDescriptor in various places. Fix sentence capitalization for a couple of undo label strings. Change-Id: I66191ccf4cc0f4105c2331d496f3674ac1ad8b9d
* | Merge "Fix computeSdkVersion initialization"Tor Norbye2011-01-241-10/+11
|\ \ | |/ |/|
| * Fix computeSdkVersion initializationTor Norbye2011-01-201-10/+11
|/ | | | Change-Id: I0c8cc49eb403f207845ee8167872b6c318ee3b82
* Merge "ADT: Fix palette items to use full width."Raphael Moll2011-01-191-1/+4
|\
| * ADT: Fix palette items to use full width.Raphael Moll2011-01-191-1/+4
|/ | | | Change-Id: Ieb35e80de19f60b2fd724629374ad3a91832f0e9
* Merge "Add renderscript support to the Ant build system."Xavier Ducrohet2011-01-189-6/+215
|\
| * Add renderscript support to the Ant build system.Xavier Ducrohet2011-01-189-6/+215
|/ | | | Change-Id: Iba1c956d33725716923da89b788f7f8d14524e41
* Merge "Parse the manifest min/targetSdkVersion to configure the layoutlib."Xavier Ducrohet2011-01-184-13/+121
|\
| * Parse the manifest min/targetSdkVersion to configure the layoutlib.Xavier Ducrohet2011-01-184-13/+121
| | | | | | | | | | | | | | | | This is needed to configure ApplicationInfo in the layoutlib so that some widgets properly apply different behaviors based on the app targetSdkVersion. Change-Id: Ic78af4390d1b871469583f3efc0de3a9da718a6c
* | Merge "Move SDK Tools and ADT version to 10."Xavier Ducrohet2011-01-1813-21/+21
|\ \
| * | Move SDK Tools and ADT version to 10.Xavier Ducrohet2011-01-1813-21/+21
| |/ | | | | | | Change-Id: I6cfde67f2d0a0da2f94124d19e152e99df349820
* | Merge "Add handling of proximity sensor"David Turner2011-01-181-2/+23
|\ \ | |/ |/|
| * Add handling of proximity sensorOla Albertsson2010-12-171-2/+23
| | | | | | | | | | | | | | A proximity sensor is added to the sensors, the proximity sensor has resolution 1 and maxRange 1. This means that it can be either 0 or 1. Change-Id: I60e27ebe673d493124be19158e56a19b0e4813de
* | merge from tools_r9The Android Open Source Project2011-01-171-0/+10
|\ \ | | | | | | | | | Change-Id: I72c110fa93196b85eaf2da935af7ebf6006824dc
| * \ Merge "Display AIDL cmd line in ADT Build Verbose mode." into tools_r9Raphael Moll2011-01-171-0/+10
| |\ \
| | * | Display AIDL cmd line in ADT Build Verbose mode.Raphael Moll2011-01-171-0/+10
| | | | | | | | | | | | | | | | Change-Id: I9d9091baac364671f0698becd33c87fba41edc7d
* | | | merge from tools_r9The Android Open Source Project2011-01-173-1/+23
|\ \ \ \ | |/ / / | | | | | | | | Change-Id: I55fd5bd666040624c47c9794fdee0d0aa8ba43d7
| * | | Merge "Add min/targetSdkVersion to the LayoutLib API." into tools_r9Xavier Ducrohet2011-01-173-1/+23
| |\ \ \
| | * | | Add min/targetSdkVersion to the LayoutLib API.Xavier Ducrohet2011-01-173-1/+23
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will allow some widgets to properly behave based on the minSdkVersion and targetSdkVersion of the project during rendering. Change-Id: I96d432b8b92fbc211ce122da51bd18049708c14f
* | | | merge from tools_r9The Android Open Source Project2011-01-171-0/+2
|\ \ \ \ | |/ / / | | | | | | | | Change-Id: Ic0d0a3a2c8a5ee1d166d738334c0c2c7e7521363
| * | | Merge "Update changes.txt to reflect work on issues #3162 and #13092" into ↵Tor Norbye2011-01-171-0/+2
| |\ \ \ | | | | | | | | | | | | | | | tools_r9
| | * | | Update changes.txt to reflect work on issues #3162 and #13092Tor Norbye2011-01-171-0/+2
| |/ / / | | | | | | | | | | | | Change-Id: I48b7fd550069c455124f8fe0e468390805e3cfd8
* | | | merge from tools_r9The Android Open Source Project2011-01-173-2/+13
|\ \ \ \ | |/ / / | | | | | | | | Change-Id: Ib923c5ab4fc6e0e0916645c09506d334a8d68d63
| * | | Merge "Configure TabHosts on drop" into tools_r9Tor Norbye2011-01-172-0/+7
| |\ \ \
| | * | | Configure TabHosts on dropTor Norbye2011-01-172-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a dummy child to the TabHost on drop. Change-Id: I0f00dda449b81025c24933b6e1578b6b1a431272
| * | | | Merge "Fix error logging for null-message exceptions" into tools_r9Tor Norbye2011-01-171-2/+6
| |\ \ \ \ | | |/ / / | |/| | |
| | * | | Fix error logging for null-message exceptionsTor Norbye2011-01-171-2/+6
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some exceptions (such as NullPointerException) can have null as their getLocalizedMessage(). This meant that the render session could have a result with a null message, but a non-null exception. This scenario was not handled, for some error resulted in a failed result but no details given. Change-Id: I22c70cd09b3403e73e71ca971981b32026f00ad0