Ich verwende eine Videoansicht und ein relatives Layout. Die App wird nur im Hochformat ausgeführt. Momentan gebe ich genaue dps, um die gewünschte Größe zu erhalten. Was ich gerne hätte, ist, die Videoansicht mit der halben Größe meines Layouts zu bekommen.Wie kann ich meine Videoanzeige auf die Hälfte meines Bildschirms stellen?
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:opencv="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_smile"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="MyActivity">
<VideoView
android:id="@+id/videoViewSmile"
android:layout_width="match_parent"
android:layout_height="300dp" />
</RelativeLayout>
dank für Ihre Hilfe war die letzte Zeile, was ich für –
@ChitKhine Glad zu helfen suchen! : D –