Skip to content

Commit 917b537

Browse files
committed
Update
1 parent bbd10d8 commit 917b537

1 file changed

Lines changed: 16 additions & 14 deletions

File tree

app/src/main/res/layout/activity_text_editor.xml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:app="http://schemas.android.com/apk/res-auto"
34
android:layout_width="match_parent"
45
android:layout_height="match_parent"
56
android:fitsSystemWindows="false">
@@ -20,20 +21,21 @@
2021
android:fillViewport="true"
2122
android:scrollbarStyle="insideOverlay">
2223

23-
<EditText
24-
android:id="@+id/editor_content"
25-
android:layout_width="match_parent"
26-
android:layout_height="match_parent"
27-
android:background="@android:color/transparent"
28-
android:gravity="top|start"
29-
android:hint="@string/editor_hint_empty"
30-
android:inputType="textMultiLine|textNoSuggestions"
31-
android:imeOptions="flagNoExtractUi"
32-
android:padding="16dp"
33-
android:textColor="?android:attr/textColorPrimary"
34-
android:textColorHint="?android:attr/textColorSecondary"
35-
android:textSize="14sp"
36-
android:typeface="monospace" />
24+
<EditText
25+
android:id="@+id/editor_content"
26+
android:layout_width="wrap_content"
27+
android:layout_height="match_parent"
28+
android:minWidth="100%"
29+
android:background="@android:color/transparent"
30+
android:gravity="top|start"
31+
android:padding="16dp"
32+
android:fontFamily="monospace"
33+
android:textSize="14sp"
34+
android:hint="@string/editor_hint_empty"
35+
android:inputType="textMultiLine|textVisiblePassword|textNoSuggestions"
36+
android:imeOptions="flagNoExtractUi"
37+
android:textColor="?android:attr/textColorPrimary"
38+
android:textColorHint="?android:attr/textColorSecondary" />
3739

3840
</HorizontalScrollView>
3941

0 commit comments

Comments
 (0)