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

Popular posts from this blog

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

sql server - SQL Query returns one result, does not return 0 or NULL result -