Anyone? Does somebody at least now where I can find more informations 
regarding that?

On Wednesday, November 7, 2012 3:03:55 PM UTC+1, Zoran Smilevski wrote:
>
> Oh, I forgot something. This question is also on StackOverflow with 
> screenshots (
> http://stackoverflow.com/questions/13237554/fullscreen-video-player-mediacontroller-behind-navigation-bar/13237778
> ).
>
> Thanks again for any help!
>
> On Wednesday, November 7, 2012 3:02:21 PM UTC+1, Zoran Smilevski wrote:
>>
>> Hello,
>>
>> I have a problem with creating video player.
>> I want that only VideoView will be resized behind navigation bar (soft 
>> navigation keys) and all overlay elements (timeline, ...) are sized 
>> "normaly" (not behind navigation bar).
>>
>> So I call *setSystemUiVisibility* method on layout root element 
>> (playerLayout) and on all other elements I have *
>> android:fitsSystemWindows *(besides VideoView of course). Resizing 
>> behind navigation bar works, but for all elements, even if they have *
>> fitsSystemWindows.* Can someone please explain me why and how to fix 
>> this?
>>
>> Thanks!
>>
>> Layout file:
>>
>> <FrameLayout 
>> xmlns:android="http://schemas.android.com/apk/res/android"android:id="@+id/playerLayout"android:layout_width="fill_parent"android:layout_height="fill_parent"android:animateLayoutChanges="true"android:background="@color/black";
>>  ><mynamespace.VideoView
>>     android:id="@+id/videoview"
>>     android:layout_width="wrap_content"
>>     android:layout_height="wrap_content"
>>     android:layout_gravity="center"/><mynamespace.SubtitleTextView
>>     android:id="@+id/subtitleText"
>>     style="@style/SubtitleOverlayText"
>>     android:layout_width="wrap_content"
>>     android:layout_height="wrap_content"
>>     android:layout_gravity="bottom|center_horizontal"
>>     android:layout_marginBottom="30dp"
>>     android:gravity="center"
>>     android:visibility="gone"
>>     android:fitsSystemWindows="true"
>>     android:animateLayoutChanges="true"/><FrameLayout
>>     android:id="@+id/adLayout"
>>     android:layout_width="wrap_content"
>>     android:layout_height="wrap_content"
>>     android:layout_gravity="top|right"
>>     android:fitsSystemWindows="true"
>>     android:animateLayoutChanges="true"/><FrameLayout
>>     android:id="@+id/videoMediaControllerHolder"
>>     android:layout_width="match_parent"
>>     android:layout_height="match_parent"
>>     android:fitsSystemWindows="true"
>>     android:animateLayoutChanges="true"/>
>>
>>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to