fenster icon indicating copy to clipboard operation
fenster copied to clipboard

width not obey the layout settings used in recylcerview

Open weiweiwang opened this issue 10 years ago • 1 comments

@malmstein I tried to use FensterVideoView in recyclerview <FrameLayout android:id="@+id/daily_item_list_item_play_video_frame_layout" android:layout_width="match_parent" android:layout_height="@dimen/list_item_default_height" android:background="@android:color/black" android:visibility="gone">

            <com.malmstein.fenster.view.FensterVideoView
                android:id="@+id/daily_item_list_item_play_video_view"
                android:layout_width="match_parent"
                android:layout_height="@dimen/list_item_default_height"
                android:background="@android:color/black"
                android:keepScreenOn="true" />

            <com.malmstein.fenster.controller.MediaFensterPlayerController
                android:id="@+id/daily_item_list_item_play_video_controller"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_gravity="bottom"
                android:animateLayoutChanges="true" />

        </FrameLayout>

after loading the video width change to a smaller one not obey match_parent settings http://image.cdn.daily.prototypeplus.org/image%2F2015%2F12%2F21%2Fbug.png

weiweiwang avatar Dec 21 '15 03:12 weiweiwang

Hello @weiweiwang, I believe that the issue is that the video stream size is smaller than your RecyclerView item width.

I'm working on https://github.com/malmstein/fenster/issues/5 and it should allow you to Center Crop the video inside the list item.

malmstein avatar Dec 23 '15 19:12 malmstein