Skip to content

Fork to address issue #6 (user-configurable location) and prevent crash when opening XML editor

License

Notifications You must be signed in to change notification settings

Nos78/android-xml-editor

 
 

Repository files navigation

1 Closed Author Label Projects Milestones Assignee Sort Issues list Assets (& cache) location should be user configurable #6 opened 16 hours ago by Nos78

android and totalcross logo together

Android-XML-Editor

Editor for Android XML files in VSCode powered by TotalCross

  •   Docs   •   Videos   •   GUI for Embedded community   •   Source Code

Extension that interprets the XML file - transforming it into HTML - and displays it in a web view in VSCode, which is lighter than Android Studio and InteliJ. You can see the source code on GitHub.

🤘 Suggestion

✨ Features

  • Read and XML file;
  • Displaying the XML file in the webview;
  • Real-time webview editing.

🚨 Requirements

  • VS Code 1.47+;
  • By default, the plugin looks for images and media (assets) in this src/main/res/drawable directory;
  • As this is an alpha version, the plugin only supports content-layout.

NEW: Resources Path now user-configurable

  • The assets location can now be configured at the user (all workspaces) or per-workspace level by using vscode File->Settings, and navigating to Android XML Editor within the extensions tab. The new path should be relative to the workspace root. VSCode workspace settings override any user setting.
  • Example: A workspace opened at ~/src/android/helloWorld/ contains the default android project sub-directories. The workspace resources path setting would need to be app/src/main./res/drawable

👩‍💻 Using Android-XML-Editor plugin

  1. Open your XML file on VSCode

  2. Press F1 or cmd + shift + p and search for Android XML Editor: Open.

  3. You can start making changes to your XML file and follow the result through the webview

🚧 Contributing to Android-XML-Editor:

Choose the way to contribute and follow these steps:

With code:

  1. Fork this repository.
  2. Create a branch: git checkout -b <branch_name>.
  3. Make your changes and commit them: git commit -m '<commit_message>'
  4. Push to the original branch: git push origin <project_name>/<location>
  5. Create the pull request.

Help us to improve:

💻 Moderators

🤔 About TotalCross

TotalCross is a technology company aimed at facilitating the development of Graphical User Interfaces for embedded systems offering services, computer vision technology for GUI construction and, mainly, supporting Open Source technologies and their communities.

Today totalcross is moderator of the Embedded GUI community and sponsor of TotalCross SDK.

📢 Contact

📝 vscode modules

See more about the modules used:

About

Fork to address issue #6 (user-configurable location) and prevent crash when opening XML editor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 89.3%
  • JavaScript 4.8%
  • HTML 4.6%
  • CSS 1.3%