Search in sources :

Example 6 with ScrollState

use of de.pixart.messenger.ui.util.ScrollState in project Pix-Art-Messenger by kriztan.

the class ConversationsOverviewFragment method getScrollState.

private ScrollState getScrollState() {
    if (this.binding == null) {
        return null;
    }
    int position = this.binding.list.getFirstVisiblePosition();
    final View view = this.binding.list.getChildAt(0);
    if (view != null) {
        return new ScrollState(position, view.getTop());
    } else {
        return new ScrollState(position, 0);
    }
}
Also used : ScrollState(de.pixart.messenger.ui.util.ScrollState) View(android.view.View)

Aggregations

ScrollState (de.pixart.messenger.ui.util.ScrollState)6 View (android.view.View)2 SuppressLint (android.annotation.SuppressLint)1 Uri (android.net.Uri)1 AbsListView (android.widget.AbsListView)1 AdapterView (android.widget.AdapterView)1 ImageView (android.widget.ImageView)1 ListView (android.widget.ListView)1 Conversation (de.pixart.messenger.entities.Conversation)1 ActivityResult (de.pixart.messenger.ui.util.ActivityResult)1