feat: new editor: jsdroid editor
This commit is contained in:
9
app/src/main/res/drawable/code_edit_text_cursor.xml
Normal file
9
app/src/main/res/drawable/code_edit_text_cursor.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
|
||||
<solid android:color="#ffffff"/>
|
||||
|
||||
<size android:width="1dp"/>
|
||||
|
||||
</shape>
|
||||
10
app/src/main/res/layout/code_editor.xml
Normal file
10
app/src/main/res/layout/code_editor.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.stardust.scriptdroid.ui.edit.editor.CodeEditText
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/code_edit_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@android:color/transparent"
|
||||
android:textCursorDrawable="@drawable/code_edit_text_cursor"
|
||||
android:textSize="15sp"/>
|
||||
|
||||
@@ -119,7 +119,7 @@
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.stardust.scriptdroid.ui.edit.CodeMirrorEditor
|
||||
<com.stardust.scriptdroid.ui.edit.editor.CodeEditor
|
||||
android:id="@+id/editor"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
|
||||
Reference in New Issue
Block a user