Skip to content

Commit

Permalink
Enabled fast scrolling for editor
Browse files Browse the repository at this point in the history
  • Loading branch information
aario committed Oct 2, 2017
1 parent b4a8cf8 commit c37b87b
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions app/src/main/res/layout/editor_fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,21 @@
android:hint="@string/etTitle_hint"
android:inputType="textCapWords|textPersonName" />

<EditText
android:id="@+id/etEditor"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:ems="10"
android:gravity="top"
android:inputType="textCapSentences|textMultiLine"
android:scrollbars="horizontal|vertical" />
<ScrollView
android:id="@+id/scroll"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fadingEdge="none"
android:orientation="vertical">

<EditText
android:id="@+id/etEditor"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:ems="10"
android:gravity="top"
android:inputType="textCapSentences|textMultiLine"
android:overScrollMode="always"
android:scrollbars="horizontal|vertical" />
</ScrollView>
</LinearLayout>

0 comments on commit c37b87b

Please sign in to comment.