|
1 | 1 | <?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" |
3 | 4 | xmlns:tools="http://schemas.android.com/tools" |
4 | 5 | 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" /> |
6 | 13 |
|
7 | | - <LinearLayout |
| 14 | + <com.duy.ide.editor.view.CodeEditor |
| 15 | + android:id="@+id/edit_text" |
8 | 16 | android:layout_width="match_parent" |
9 | 17 | 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" /> |
33 | 25 |
|
| 26 | +</LinearLayout> |
0 commit comments