Monday, July 18, 2011

[android-developers] Buttons in a videoview.

I am trying to put some buttons on a videoview. I know frame layouts
normally allow that but for some reason when I try to run the program
it fails. Im not too sure if its because of space or something else
wrong with my layout. The reason I know the buttons are causing it to
fail is because when i get rid of them my program works fine.Anyways
please check it out below at your convenience ofcourse.

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"

android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>

<VideoView android:id="@+id/secondvideoView"
android:layout_width="720px"
android:layout_alignParentRight="true"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_alignParentBottom="true"
android:layout_height="480px">
</VideoView>


<LinearLayout>

android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center_vertical">

<Button
android:text="use"
android:id="@+id/use"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#FF0000"
android:enabled="false"
android:textSize="10dp"
>
</Button>
<Button
android:id="@+id/retake"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#FF0000"
android:paddingTop="0px"
android:text="retake"
android:textSize="10dp"
android:enabled="false"
>
</Button>


</LinearLayout>

</FrameLayout>

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

No comments:

Post a Comment