diff --git a/plugins/Layout-Editor/README.md b/plugins/Layout-Editor/README.md index 84c6f3dd1..d2c9f5ca0 100644 --- a/plugins/Layout-Editor/README.md +++ b/plugins/Layout-Editor/README.md @@ -35,7 +35,7 @@ layout-editor/ ├── layout-editor-documentation.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 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/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: