Commit Graph

89 Commits

Author SHA1 Message Date
Akash Yadav 0d9e69bb89 fix: layout hierarchy view is not scrollable 2023-01-02 08:17:35 +05:30
Akash Yadav 34e09dc0d4 feat: use Kotlin Symbol Processor to generate IViewAdapterIndex implementation 2023-01-01 08:33:24 +05:30
Akash Yadav 1ee192f314 feat: define interface for IViewAdapterIndex to resolve unresolved references in UI designer 2022-12-31 18:42:12 +05:30
Akash Yadav b4df9f82b0 fix(deps): update Gradle to v7.6 to fix source set issues 2022-12-31 18:42:11 +05:30
Akash Yadav 42a3e71114 chore: migrate to Kotlin DSL and Version Catalog 2022-12-30 23:24:38 +05:30
Akash Yadav dd212514e8 feat: automatically switch between light and dark variants of a color scheme 2022-12-29 08:50:56 +05:30
Akash Yadav 70f48d4c20 fix: crash when undoing attribute addition 2022-12-28 22:15:28 +05:30
Akash Yadav 708518052e fix: invalid color scheme in ShowXmlActivity 2022-12-27 20:53:38 +05:30
Akash Yadav 4e621f7150 feat: add tree-sitter language for XML 2022-12-27 20:11:03 +05:30
Akash Yadav 91382440c7 feat(xml-inflater): replace unsupported views/layouts with error views
This fixes a bug where the child views of an unsupported layout were lost in the UI Designer's XML generation process
2022-12-22 20:18:12 +05:30
Akash Yadav 9235885c68 feat: add basic support for handling configuration changes 2022-12-21 14:56:52 +05:30
Akash Yadav 956f76dc15 fix(uidesigner): view info sheet is not dismissed when selected view is deleted 2022-12-20 15:48:37 +05:30
Akash Yadav 42b3d463c7 fix(xml-inflater): fix typo in IViewGroup.canAcceptChild() 2022-12-20 14:28:30 +05:30
Akash Yadav 369a0ad904 feat(uidesigner): allow IViewGroup implementations to accept or reject a child in drag events 2022-12-20 13:56:41 +05:30
Akash Yadav f7dfe3515b feat(uidesigner): show view info on hierarchy text click 2022-12-20 11:53:56 +05:30
Akash Yadav aeb314624f feat(uidesigner,xml-inflater): automate process of adding widgets in UI Designer with annotations
The IViewAdapter implementations can use @IncludeInDesigner(group) annotation to indicate that the adapter supports views that can be added in the UI Designer. The adapters which are annotated with @IncludeInDesigner must override the 'List<UiWidget> createWidgets()' method and provide a list of UiWidgets that will be displayed in the UI Designer.
2022-12-20 11:31:01 +05:30
Akash Yadav fb9096013f refactor: move IDEEditor to :editor module (fixes #672) 2022-12-20 07:59:10 +05:30
Akash Yadav 5f7b1fb0f0 feat(uidesigner): provide generated XML to EditorActivity when user exists UI Designer 2022-12-19 14:36:25 +05:30
Akash Yadav d19557e973 feat(uidesigner): add action to open view hierarchy layout 2022-12-19 13:28:44 +05:30
Akash Yadav a0311c3098 fix(uidesigner): end tag element is not indented in generated XML 2022-12-19 13:21:30 +05:30
Akash Yadav 7398b58d92 fix(uidesigner): only one line is copied in ShowXmlActivity 2022-12-19 13:18:28 +05:30
Akash Yadav 3f97b7cf6c fix(uidesigner): incorrect child count computation in hierarchy layout 2022-12-19 13:16:24 +05:30
Akash Yadav a042b82579 feat(uidesigner): implement copy function in ShowXmlActivity 2022-12-19 12:58:11 +05:30
Akash Yadav 5fb200aada feat(uidesigner): add view hierarchy layout in UI designer 2022-12-19 12:58:11 +05:30
Akash Yadav a959f78d38 feat(uidesigner): use navigation component to navigate between fragments 2022-12-19 12:58:10 +05:30
Akash Yadav dbd0e5b4ba feat: option to add attributes to an inflated view 2022-12-18 23:35:32 +05:30
Akash Yadav 97193ca11d feat: use attribute handlers to apply attributes in IViewAdapter 2022-12-18 18:58:07 +05:30
Akash Yadav 6caadebd91 feat: include view superclass hierarchy in IViewAdapter 2022-12-17 23:44:14 +05:30
Akash Yadav c4087aac50 refactor: move view XML generation logic from ShowXmlAction to ViewToXml 2022-12-17 21:59:19 +05:30
Akash Yadav 0bc184fb8f feat: hide 'Show XML' action if not views has been inflated 2022-12-17 21:59:18 +05:30
Akash Yadav 4f33807e8a feat: do not create XMLLanguage reflectively in UI Designer 2022-12-17 21:59:16 +05:30
Akash Yadav 1ff2658d1f feat: add option to see generated XML directly from UI Designer 2022-12-11 19:08:56 +05:30
Akash Yadav 088721d7c8 feat: collapsible widget list in UI Designer 2022-12-11 09:42:14 +05:30
Akash Yadav 06c4f67f17 fix: parent highlight state not updated on widget drop 2022-12-11 09:20:13 +05:30
Akash Yadav b4881d8d1d feat: prevent multiple touch slop computation 2022-12-11 09:20:13 +05:30
Akash Yadav 80a421cc48 fix: widget drop index is always actualDropIndex - 1 2022-12-11 09:20:12 +05:30
Akash Yadav 26e6f54645 fix: drag listener has too much sensitivity 2022-12-11 09:20:12 +05:30
Akash Yadav c25f7ab342 feat: do not set drag listener to view groups which cannot accept children 2022-12-11 09:20:11 +05:30
Akash Yadav a33862da55 fix: newly added views do not have proper foreground 2022-12-11 09:20:11 +05:30
Akash Yadav ba1d95323f fix: listeners and foreground is added again when moving views 2022-12-11 09:20:10 +05:30
Akash Yadav f14030e542 feat: add undo/redo support for view attributes 2022-12-10 22:39:18 +05:30
Akash Yadav 19d9b77c0d refactor: rename WorkspaceHierarchyHandler 2022-12-10 18:46:17 +05:30
Akash Yadav 13d0e3bef3 refactor: move layout inflation and hierarchy change logic from workspace fragment 2022-12-09 08:55:17 +05:30
Akash Yadav f1abb07110 feat: add undo redo actions in UI Designer 2022-12-09 08:16:00 +05:30
Akash Yadav af2cfa8685 fix: fix UndoManager tests 2022-12-07 10:15:01 +05:30
Akash Yadav 64b6f4680e refactor: changed signature of ActionData helper functions 2022-12-07 10:13:12 +05:30
Akash Yadav 140aec072a feat: add basic implementation of UndoManager for UI Designer 2022-12-06 23:44:47 +05:30
Akash Yadav c4cb67fc18 feat: add ability to remove attributes from views 2022-12-06 22:04:37 +05:30
Akash Yadav 24bab22ddb feat: dynamic colors in UI Designer 2022-12-05 10:15:54 +05:30
Akash Yadav 903e3074af fix: crash due to invalid attribute reference 2022-12-05 10:15:54 +05:30