diff --git a/plugins/Layout-Editor/README.md b/plugins/Layout-Editor/README.md
index 84c6f3dd1..3f62478d5 100644
--- a/plugins/Layout-Editor/README.md
+++ b/plugins/Layout-Editor/README.md
@@ -30,12 +30,12 @@ and libraries and links only against the stable `plugin-api` contract.
## Architecture
```
-layout-editor/
+plugins/Layout-Editor/
├── build.gradle.kts, settings.gradle.kts, proguard-rules.pro
-├── layout-editor-documentation.html # full reference for this plugin
+├── layout-editor.html # full reference for this plugin
├── src/main/
│ ├── AndroidManifest.xml # plugin id, main class, icons, permissions
-│ ├── assets/ # icons, tooltips.json, widgetclasses.json, palette/, attributes/, editor/
+│ ├── assets/ # icons, widgetclasses.json, palette/, attributes/, editor/
│ ├── kotlin|java/.../layouteditor/
│ │ ├── LayoutEditorPlugin.kt # entry point: toolbar action, enable rule, tooltips, build-status
│ │ ├── LayoutEditorFragment.kt # full-screen editor: canvas, palette, component tree, drawer
@@ -99,7 +99,7 @@ builder copies the built APK into the `.cgp` and then deletes the source APK.
## Documentation
-`layout-editor-documentation.html` is the full reference for this plugin. In the IDE,
+`layout-editor.html` is the full reference for this plugin. In the IDE,
long-press any control, palette item, or attribute for its tooltip.
## License
diff --git a/plugins/Layout-Editor/build.gradle.kts b/plugins/Layout-Editor/build.gradle.kts
index b319474dd..a14eeeb32 100644
--- a/plugins/Layout-Editor/build.gradle.kts
+++ b/plugins/Layout-Editor/build.gradle.kts
@@ -15,8 +15,8 @@ android {
applicationId = "org.appdevforall.codeonthego.layouteditor"
minSdk = 26
targetSdk = 36
- versionCode = 1
- versionName = "1.0.0"
+ versionCode = 2
+ versionName = "2.0.0"
}
buildTypes {
diff --git a/plugins/Layout-Editor/layout-editor.html b/plugins/Layout-Editor/layout-editor.html
index 6645558fc..696c972b4 100644
--- a/plugins/Layout-Editor/layout-editor.html
+++ b/plugins/Layout-Editor/layout-editor.html
@@ -175,8 +175,10 @@
Documentation on demand
Every control, palette item, and attribute carries a tooltip. Long-press it to
read a short description, with a button through to the IDE's fuller
- documentation. The entries come from the plugin's
- DocumentationExtension.
+ documentation. A widget shows the IDE's java entry for its class,
+ such as android.widget.TextView, and an attribute shows the IDE's
+ xml entry for its name. The editor's own controls use entries from
+ the plugin's DocumentationExtension.
@@ -189,11 +191,11 @@ File layout
plugins/Layout-Editor/
- build.gradle.kts, settings.gradle.kts, proguard-rules.pro
- - layout-editor-documentation.html (this page)
+ - layout-editor.html (this page)
- src/main/
- AndroidManifest.xml (plugin id, main class, icons, permissions)
- - assets/ (
icon_day.png, icon_night.png; tooltips.json, widgetclasses.json; palette/, attributes/, editor/; default font and image)
+ - assets/ (
icon_day.png, icon_night.png; widgetclasses.json; palette/, attributes/, editor/; default font and image)
- kotlin/ and java/ org/appdevforall/codeonthego/layouteditor/
- LayoutEditorPlugin.kt: entry point; toolbar action, enable rule, tooltips, build-status tracking
@@ -323,9 +325,12 @@ 4.4 Build-status tracking (BuildStatusListener)
4.5 Documentation (DocumentationExtension)
getTooltipCategory() returns the plugin's tooltip category, and
- getTooltipEntries() provides the toolbar-action tooltip, the
- editor-control tooltips, and one entry per widget and attribute (loaded from
- assets/tooltips.json). Tooltip buttons link into the IDE's
+ getTooltipEntries() provides the toolbar-action tooltip and the
+ editor-control tooltips. Widgets and attributes have no entries of their own:
+ LayoutEditorDocs looks a widget up in the IDE's java
+ category by its fully qualified class name, and an attribute in the IDE's
+ xml category by its name without the namespace prefix, so both show
+ the documentation the IDE maintains. Tooltip buttons link into the IDE's
documentation through direct paths, so the plugin does not bundle its own
documentation pages.
diff --git a/plugins/Layout-Editor/src/main/AndroidManifest.xml b/plugins/Layout-Editor/src/main/AndroidManifest.xml
index b036b882b..2300f5508 100644
--- a/plugins/Layout-Editor/src/main/AndroidManifest.xml
+++ b/plugins/Layout-Editor/src/main/AndroidManifest.xml
@@ -27,7 +27,7 @@
+ android:value="26.48" />
To specify an action when the button is pressed, set a click listener on the button object in the corresponding activity code: public class MyActivity extends Activity { protected void onCreate(...",
- "uri": "a/android/widget/Button.html",
- "label": "View full documentation"
- },
- {
- "tag": "android.widget.CalendarView",
- "summary": "This class is a calendar widget for displaying and selecting dates.",
- "detail": "This class is a calendar widget for displaying and selecting dates. The range of dates supported by this calendar is configurable. The exact appearance and interaction model of this widget may vary between OS versions and themes (e.g. Holo versus Material), but in general a user can select a date by tapping on it and can scroll or fling the calendar to a desired date. Summary Nested classes interface CalendarView.OnDateChangeListener The callback used to indicate the user changes the date. XML a...",
- "uri": "a/android/widget/CalendarView.html",
- "label": "View full documentation"
- },
- {
- "tag": "android.widget.CheckBox",
- "summary": "A checkbox is a specific type of two-states button that can be either checked or unchecked.",
- "detail": "A checkbox is a specific type of two-states button that can be either checked or unchecked. A example usage of a checkbox inside your activity would be the following: public class MyActivity extends Activity { protected void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.content_layout_id); final CheckBox checkBox = (CheckBox) findViewById(R.id.checkbox_id); if (checkBox.isChecked()) { checkBox.setChecked(false); } } } See the Checkboxes guide. XML attributes See Compo...",
- "uri": "a/android/widget/CheckBox.html",
- "label": "View full documentation"
- },
- {
- "tag": "android.widget.CheckedTextView",
- "summary": "An extension to TextView that supports the Checkable interface and displays.",
- "detail": "An extension to TextView that supports the Checkable interface and displays. This is useful when used in a ListView where the setChoiceMode has been set to something other than CHOICE_MODE_NONE. Summary XML attributes android:checkMark Drawable used for the check mark graphic. android:checkMarkTint Tint to apply to the check mark. android:checkMarkTintMode Blending mode used to apply the check mark tint. android:checked Indicates the initial checked state of this text. Inherited XML attributes F...",
- "uri": "a/android/widget/CheckedTextView.html",
- "label": "View full documentation"
- },
- {
- "tag": "android.widget.EditText",
- "summary": "A user interface element for entering and modifying text.",
- "detail": "A user interface element for entering and modifying text. When you define an edit text widget, you must specify the R.styleable.TextView_inputType attribute. For example, for plain text input set inputType to \"text\": Choosing the input type configures the keyboard type that is shown, acceptable characters, and appearance of the edit text. For example, i...",
- "uri": "a/android/widget/EditText.html",
- "label": "View full documentation"
- },
- {
- "tag": "android.widget.FrameLayout",
- "summary": "FrameLayout is designed to block out an area on the screen to display a single item.",
- "detail": "FrameLayout is designed to block out an area on the screen to display a single item. Generally, FrameLayout should be used to hold a single child view, because it can be difficult to organize child views in a way that's scalable to different screen sizes without the children overlapping each other. You can, however, add multiple children to a FrameLayout and control their position within the FrameLayout by assigning gravity to each child, using the android:layout_gravity attribute. Child views a...",
- "uri": "a/android/widget/FrameLayout.html",
- "label": "View full documentation"
- },
- {
- "tag": "android.widget.GridLayout",
- "summary": "A layout that places its children in a rectangular grid.",
- "detail": "A layout that places its children in a rectangular grid. The grid is composed of a set of infinitely thin lines that separate the viewing area into cells. Throughout the API, grid lines are referenced by grid indices. A grid with N columns has N + 1 grid indices that run from 0 through N inclusive. Regardless of how GridLayout is configured, grid index 0 is fixed to the leading edge of the container and grid index N is fixed to its trailing edge (after padding is taken into account). Row and Col...",
- "uri": "a/android/widget/GridLayout.html",
- "label": "View full documentation"
- },
- {
- "tag": "android.widget.GridView",
- "summary": "A view that shows items in two-dimensional scrolling grid.",
- "detail": "A view that shows items in two-dimensional scrolling grid. The items in the grid come from the ListAdapter associated with this view. See the Grid View guide.",
- "uri": "a/android/widget/GridView.html",
- "label": "View full documentation"
- },
- {
- "tag": "android.widget.HorizontalScrollView",
- "summary": "Layout container for a view hierarchy that can be scrolled by the user, allowing it to be larger than the physical display.",
- "detail": "Layout container for a view hierarchy that can be scrolled by the user, allowing it to be larger than the physical display. A HorizontalScrollView is a FrameLayout, meaning you should place one child in it containing the entire contents to scroll; this child may itself be a layout manager with a complex hierarchy of objects. A child that is often used is a LinearLayout in a horizontal orientation, presenting a horizontal array of top-level items that the user can scroll through. The TextView cla...",
- "uri": "a/android/widget/HorizontalScrollView.html",
- "label": "View full documentation"
- },
- {
- "tag": "android.widget.ImageButton",
- "summary": "Displays a button with an image (instead of text) that can be pressed or clicked by the user.",
- "detail": "Displays a button with an image (instead of text) that can be pressed or clicked by the user. By default, an ImageButton looks like a regular Button, with the standard button background that changes color during different button states. The image on the surface of the button is defined either by the android:src attribute in the XML element or by the ImageView.setImageResource(int) method. To remove the standard button background image, define your own background image or set the ba...",
- "uri": "a/android/widget/ImageButton.html",
- "label": "View full documentation"
- },
- {
- "tag": "android.widget.ImageView",
- "summary": "Displays image resources, for example Bitmap or Drawable resources.",
- "detail": "Displays image resources, for example Bitmap or Drawable resources. ImageView is also commonly used to apply tints to an image and handle image scaling. The following XML snippet is a common example of using an ImageView to display an image resource: