Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ahmadaghazadeh/codeeditor
Code Editor Native Way
https://github.com/ahmadaghazadeh/codeeditor
android autocomplete codeeditor customview edittext gradle jitpack library lighlight
Last synced: 7 days ago
JSON representation
Code Editor Native Way
- Host: GitHub
- URL: https://github.com/ahmadaghazadeh/codeeditor
- Owner: ahmadaghazadeh
- License: apache-2.0
- Created: 2018-09-30T10:23:25.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-10-31T20:13:44.000Z (about 2 years ago)
- Last Synced: 2024-11-26T01:28:07.986Z (about 1 month ago)
- Topics: android, autocomplete, codeeditor, customview, edittext, gradle, jitpack, library, lighlight
- Language: Java
- Homepage:
- Size: 923 KB
- Stars: 205
- Watchers: 16
- Forks: 26
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# CodeEditor [![](https://jitpack.io/v/ahmadaghazadeh/CodeEditor.svg)](https://jitpack.io/#ahmadaghazadeh/CodeEditor) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-CodeEditor-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/7185)
This is a text/code(Base From [ModPE IDE] ) editor meant for integration as a modular component of the overall UI.
The aim is to provide a powerful editor that can be used just like any other View.CodeEditor has been used for this purpose because it is feature-rich, fast, and easy to modify and embed in applications.
Please note that this library is currently supported on android API 15 and above.
Integration with existing project
### [Click For Play Video](https://youtu.be/lq-P1qwgU1Q)
[Stackoverflow](https://stackoverflow.com/a/52641368/1770868)
---
### Setup
##### build.gradle (project)
```groovy
allprojects {
repositories {
...
maven {
url 'https://jitpack.io'
}
}
}
```#### build.gradle (app)
```groovy
dependencies {
...
implementation 'com.github.ahmadaghazadeh:CodeEditor:1.0.17'
}
```### Basic Usage
#### XML DataBinding
```xml
...
...
```#### XML
```xml
...
...
```#### Java
Demo Activity:
```java
public class MainActivity extends Activity {@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
editor = findViewById(R.id.editor);
}
}
```