Skip to content

Commit 4847f01

Browse files
committed
cleanup layout editor
1 parent 22287b9 commit 4847f01

File tree

2 files changed

+19
-70
lines changed

2 files changed

+19
-70
lines changed

libeditor/src/main/java/com/duy/ide/editor/view/EditorView.java

Lines changed: 0 additions & 44 deletions
This file was deleted.
Lines changed: 19 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,26 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<com.duy.ide.editor.view.EditorView xmlns:android="http://schemas.android.com/apk/res/android"
2+
3+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
34
xmlns:tools="http://schemas.android.com/tools"
45
android:layout_width="match_parent"
5-
android:layout_height="match_parent">
6+
android:layout_height="match_parent"
7+
android:orientation="horizontal">
8+
9+
<com.duy.ide.editor.view.GutterView
10+
android:id="@+id/gutter_view"
11+
android:layout_width="0dp"
12+
android:layout_height="match_parent" />
613

7-
<LinearLayout
14+
<com.duy.ide.editor.view.CodeEditor
15+
android:id="@+id/edit_text"
816
android:layout_width="match_parent"
917
android:layout_height="match_parent"
10-
android:orientation="horizontal">
11-
12-
<com.duy.ide.editor.view.GutterView
13-
android:id="@+id/gutter_view"
14-
android:layout_width="0dp"
15-
android:layout_height="match_parent" />
16-
17-
<com.duy.ide.editor.view.CodeEditor
18-
android:id="@+id/edit_text"
19-
android:layout_width="match_parent"
20-
android:layout_height="match_parent"
21-
android:background="#ffffffff"
22-
android:enabled="false"
23-
android:gravity="start|top"
24-
android:inputType="textMultiLine"
25-
android:padding="0dp"
26-
android:scrollbars="vertical"
27-
android:typeface="monospace"
28-
tools:text="Sample code" />
29-
30-
</LinearLayout>
31-
32-
</com.duy.ide.editor.view.EditorView>
18+
android:background="#ffffffff"
19+
android:gravity="start|top"
20+
android:inputType="textMultiLine"
21+
android:padding="0dp"
22+
android:scrollbars="vertical"
23+
android:typeface="monospace"
24+
tools:text="Sample code" />
3325

26+
</LinearLayout>

0 commit comments

Comments
 (0)