i have this XML Code:
I declared in B4A this:
FFMpegVideoView1 = Xml.GetView("videoViewRelative")
i Need in B4A only change layout_width and layout_height so how to do that?
I need to change:
To
And Remove:
And add:
So that the modified xml looks:
This code works for FULLSCREEN and SMALLSCREEN for video preview of video...so when i press OK button on remote control to get desired state...how can i programatically change layout of videoViewRelative?
I declared in B4A this:
FFMpegVideoView1 = Xml.GetView("videoViewRelative")
B4X:
<RelativeLayout
android:layout_width="658dp"
android:layout_height="438dp"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
android:paddingTop="100dp"
android:paddingRight="71dp" >
<ImageView
android:id="@+id/imgPreview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/preview" />
<tv.danmaku.ijk.media.widget.VideoView
android:id="@+id/videoViewRelative"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
</tv.danmaku.ijk.media.widget.VideoView>
</RelativeLayout>
i Need in B4A only change layout_width and layout_height so how to do that?
I need to change:
B4X:
android:layout_width="658dp"
android:layout_height="438dp"
To
B4X:
android:layout_width="fill_parent"
android:layout_height="fill_parent">
And Remove:
B4X:
android:paddingTop="100dp"
android:paddingRight="71dp"
And add:
B4X:
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
So that the modified xml looks:
B4X:
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<tv.danmaku.ijk.media.widget.VideoView
android:id="@+id/videoViewRelative"
android:layout_alignParentTop="true"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
</tv.danmaku.ijk.media.widget.VideoView>
</RelativeLayout>
This code works for FULLSCREEN and SMALLSCREEN for video preview of video...so when i press OK button on remote control to get desired state...how can i programatically change layout of videoViewRelative?