Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

width not obey the layout settings used in recylcerview #24

Open
weiweiwang opened this issue Dec 21, 2015 · 1 comment
Open

width not obey the layout settings used in recylcerview #24

weiweiwang opened this issue Dec 21, 2015 · 1 comment
Assignees
Labels

Comments

@weiweiwang
Copy link

@malmstein
I tried to use FensterVideoView in recyclerview

            <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

@malmstein malmstein self-assigned this Dec 22, 2015
@malmstein
Copy link
Owner

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

I'm working on #5 and it should allow you to Center Crop the video inside the list item.

@malmstein malmstein added the bug label Jan 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants