mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-19 06:22:40 +00:00
Add scroll to bottom button in conversation view
Added a FloatingActionButton to the conversation_fragment that appears and disappears using the same logic as the existing compose divider: appear when the conversation list is scrolled away from the bottom, disappear when the list is scrolled to the bottom. Fixes #5651
This commit is contained in:

committed by
Moxie Marlinspike

parent
4c815db076
commit
aa9d8e4d14
@@ -21,4 +21,16 @@
|
||||
android:alpha="0"
|
||||
android:visibility="invisible" />
|
||||
|
||||
<android.support.design.widget.FloatingActionButton
|
||||
android:id="@+id/scroll_to_bottom_button"
|
||||
android:visibility="invisible"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="@dimen/scroll_to_bottom_button_margin_end"
|
||||
android:layout_marginRight="@dimen/scroll_to_bottom_button_margin_end"
|
||||
android:layout_marginBottom="@dimen/scroll_to_bottom_button_margin_bottom"
|
||||
android:layout_gravity="bottom|end"
|
||||
android:contentDescription="@string/conversation_fragment__scroll_to_the_bottom_content_description"
|
||||
android:src="@drawable/ic_keyboard_arrow_down_white_36dp" />
|
||||
|
||||
</FrameLayout>
|
||||
|
Reference in New Issue
Block a user