Closed PushparajKannan closed 4 years ago
RecyclerView hanging because of dynamic item view height...
my_itemview.xml file-->
<com.google.android.exoplayer2.ui.AspectRatioFrameLayout android:id="@+id/video_layout" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/colorblack" android:layout_below="@id/articlecontentLay" android:layout_marginTop="8dp" android:adjustViewBounds="true" android:gravity="center" android:scaleType="center" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/imageView"> <ImageView android:id="@+id/cover" android:layout_width="match_parent" android:layout_height="match_parent" android:scaleType="centerCrop" android:alpha="0.5" android:visibility="visible" /> <ProgressBar android:id="@+id/progressBar" style="?android:attr/progressBarStyle" android:layout_width="30dp" android:visibility="visible" android:layout_height="30dp" android:elevation="3dp" android:layout_gravity="center" android:indeterminateDrawable="@drawable/customprogress" /> <com.google.android.exoplayer2.ui.PlayerView android:id="@+id/fb_video_player" android:layout_width="match_parent" android:layout_height="match_parent" android:visibility="visible" android:minHeight="200dp" app:resize_mode="fixed_width" android:background="@color/trans" app:surface_type="texture_view" app:use_controller="false" app:show_buffering="true"> <TextView android:id="@+id/player_state" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="top|end" android:layout_margin="4dp" android:background="#80000000" android:maxLines="1" android:padding="4dp" android:fontFamily="@font/roboto" android:visibility="gone" android:textAllCaps="true" android:textAppearance="@dimen/small" android:textColor="#FFFF00" /> </com.google.android.exoplayer2.ui.PlayerView> </com.google.android.exoplayer2.ui.AspectRatioFrameLayout>
@PushparajKannan I think this is not toro's issue. Please consider to estimate the height before hand. It is suggested for any application, not just toro.
RecyclerView hanging because of dynamic item view height...
my_itemview.xml file-->