Sketchware-Pro / Sketchware-Pro

Sketchware Pro's sources in Java. Now anyone can contribute to Sketchware Pro.
https://sketchware.pro
Other
1.14k stars 379 forks source link

Add a Delete Button for Widgets in the View Editor #1628

Closed iKiwo closed 1 month ago

iKiwo commented 1 month ago

Problem Description: When working on an application in Sketchware Pro with many widgets in the View editor, some widgets become difficult to manage. If there are too many elements on the screen, certain widgets are no longer visible or accessible in the design area. Even when I select them from the widget list, dragging or interacting with them becomes nearly impossible because they’re either off-screen or overlapped, making it frustrating to edit or remove them. Currently, the only workaround is to manually edit the XML file, which isn’t the most user-friendly option.

Feature Proposal: I suggest adding a simple "Delete" button or option for widgets directly in the interface, so users can remove a widget without needing to drag it or rely on XML editing. For example:In the widget list (where all added widgets are shown), add a trash bin icon or a "Delete" button next to each widget’s name.Allow users to select a widget and delete it with a single tap, even if it’s not visible or draggable in the design area.Optionally, add a confirmation prompt to prevent accidental deletions.

Benefits: Simplifies the process of managing crowded layouts, especially for complex projects.Improves usability for beginners who may not know how to edit XML manually.Speeds up workflow by avoiding the need to switch to XML or struggle with dragging off-screen widgets.

Possible Implementation: Add a delete icon (e.g., a trash bin) next to each widget in the "Widgets" panel of the View editor.Alternatively, enable a context menu (long-press on a widget name) with a "Delete" option.Ensure the deletion updates both the design view and the underlying XML automatically.

Additional Notes: While editing XML directly is an option, it’s not the easiest or most intuitive solution, especially since Sketchware Pro is designed to simplify app development. A dedicated delete button would align with the app’s goal of being user-friendly and efficient, particularly when handling large numbers of widgets.

RoyTheReal commented 1 month ago

YES. This would make things a billion times easier.

RoyTheReal commented 1 month ago

Great job Edward! Thank you!