android - RecyclerView automatically scrolls to WebView/Fresco SimpleDraweeView item -
when put item asynchronically loaded content expandable height, such webview or fresco's simpledraweeview, view scrolls item (if it's example partially visible on screen, scrolls after item loaded). have experienced issue?
put android:descendantfocusability="beforedescendants"
in layout xml. prevent scrolling asynchronously loaded contents.
<android.support.v7.widget.recyclerview android:id="@+id/my_list" android:layout_width="match_parent" android:layout_height="match_parent" android:descendantfocusability="beforedescendants" />
Comments
Post a Comment