Smooth scrolling in EditCommentActivity.

This commit is contained in:
Alex Ning 2021-10-09 20:11:35 +08:00
parent 68e94fa928
commit e02f5a28b3

View File

@ -29,19 +29,25 @@
android:orientation="vertical" android:orientation="vertical"
app:layout_behavior="@string/appbar_scrolling_view_behavior"> app:layout_behavior="@string/appbar_scrolling_view_behavior">
<EditText <androidx.core.widget.NestedScrollView
android:id="@+id/comment_edit_text_edit_comment_activity"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_weight="1" android:layout_weight="1">
android:background="#00000000"
android:gravity="top" <EditText
android:hint="@string/post_text_content_hint" android:id="@+id/comment_edit_text_edit_comment_activity"
android:inputType="textCapSentences|textMultiLine" android:layout_width="match_parent"
android:padding="16dp" android:layout_height="match_parent"
android:textColor="?attr/primaryTextColor" android:background="#00000000"
android:textSize="?attr/content_font_18" android:gravity="top"
android:fontFamily="?attr/content_font_family" /> android:hint="@string/post_text_content_hint"
android:inputType="textCapSentences|textMultiLine"
android:padding="16dp"
android:textColor="?attr/primaryTextColor"
android:textSize="?attr/content_font_18"
android:fontFamily="?attr/content_font_family" />
</androidx.core.widget.NestedScrollView>
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:id="@+id/markdown_bottom_bar_recycler_view_edit_comment_activity" android:id="@+id/markdown_bottom_bar_recycler_view_edit_comment_activity"
@ -52,5 +58,4 @@
</LinearLayout> </LinearLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout> </androidx.coordinatorlayout.widget.CoordinatorLayout>