Skip to content

Commit bd6705d

Browse files
committed
Add scroll view to source dialog
1 parent f200b66 commit bd6705d

File tree

2 files changed

+22
-19
lines changed

2 files changed

+22
-19
lines changed
Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
<?xml version="1.0" encoding="utf-8"?>
22

3-
<org.wordpress.aztec.source.SourceViewEditText
3+
<ScrollView
44
xmlns:android="http://schemas.android.com/apk/res/android"
5-
xmlns:aztec="http://schemas.android.com/apk/res-auto"
6-
android:id="@+id/source"
7-
android:layout_width="match_parent"
8-
android:layout_height="wrap_content"
9-
android:gravity="top|start"
10-
android:inputType="textNoSuggestions|textMultiLine"
11-
android:layout_marginLeft="24dp"
12-
android:layout_marginRight="24dp"
13-
android:layout_marginStart="24dp"
14-
android:layout_marginEnd="24dp"
15-
android:layout_marginTop="24dp"
16-
android:padding="16dp"
17-
android:scrollbars="vertical"
18-
android:scrollbarStyle="outsideOverlay"
19-
android:textSize="14sp"
20-
android:imeOptions="flagNoExtractUi"
21-
aztec:codeDialog="true" >
22-
</org.wordpress.aztec.source.SourceViewEditText>
5+
android:layout_height="match_parent"
6+
android:layout_width="match_parent" >
7+
8+
<org.wordpress.aztec.source.SourceViewEditText
9+
xmlns:aztec="http://schemas.android.com/apk/res-auto"
10+
android:id="@+id/source"
11+
android:gravity="top|start"
12+
android:imeOptions="flagNoExtractUi"
13+
android:inputType="textNoSuggestions|textMultiLine"
14+
android:layout_height="wrap_content"
15+
android:layout_width="match_parent"
16+
android:padding="@dimen/margin_large"
17+
android:scrollbars="vertical"
18+
android:scrollbarStyle="outsideOverlay"
19+
android:textSize="@dimen/text_dialog"
20+
aztec:codeDialog="true" >
21+
</org.wordpress.aztec.source.SourceViewEditText>
22+
23+
</ScrollView>

aztec/src/main/res/values/dimens.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,6 @@
4646
<dimen name="margin_large">12dp</dimen>
4747
<dimen name="margin_extra_large">16dp</dimen>
4848

49+
<dimen name="text_dialog">14sp</dimen>
50+
4951
</resources>

0 commit comments

Comments
 (0)