Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4126694
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T00:03:58+00:00 2026-05-21T00:03:58+00:00

I have an application and in my layout (see xml below)there are VideoView and

  • 0

I have an application and in my layout (see xml below)there are VideoView and TextView (same application from my question here, but with a few changes in layout).The TextView is displayed and scrolls fine, but now the video is not displayed when I tried to start it. What am I doing wrong?

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical">
<VideoView
    android:id="@+id/videoview"
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:layout_above="@+id/textview"
/>
<TextView 
    android:id="@+id/textview" 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content"
    android:layout_gravity="bottom"
    android:layout_alignParentBottom="true"
    android:maxLines="30" 
    android:text="My test App"
/>
</RelativeLayout>

EDIT: adding some of Java code

My code using it is pretty simple:

setContentView(R.layout.auto);

_mTextView = (TextView)findViewById(R.id.textview);
_mTextView.setLines(30);
_mTextView.setMovementMethod(new ScrollingMovementMethod());

_mVideoView = (VideoView)findViewById(R.id.videoview);

To start the video I use a TCP server and reflection, which work just fine if I remove the TextView

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T00:03:59+00:00Added an answer on May 21, 2026 at 12:03 am

    Well I was able to find a solution to my problem by returning to the solution I got here (thanks Sunil) and modify it a bit (also mentioned in my question):

    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:orientation="vertical">
    <VideoView
        android:layout_width="fill_parent" 
        android:layout_height="fill_parent" 
        android:id="@+id/videoview"
        android:layout_above="@+id/ScrollView01"
    />
    <ScrollView   
        android:id="@+id/ScrollView01"  
        android:layout_height="350px"   
        android:layout_width="fill_parent"
        android:layout_gravity="bottom"
        android:layout_alignParentBottom="true"
        >
    <TextView 
        android:layout_width="wrap_content" 
        android:id="@+id/textview" 
        android:layout_height="wrap_content" 
        android:text="Wellcome"
    />
    </ScrollView>
    </RelativeLayout>
    

    The change is in the ScrollView – android:layout_height="350px" instead of android:layout_height="wrap content" which put it in the lower part of the screen, but with a specific size and no more than that.
    Though it is not the cleanest way possible, it does fulfill exactly what I need. I hope someone will find it useful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have implemented an application for modify the xml layout with some properties. I
In My application there is tabBar and the Edittext. See below image: Normal Screen:
I have an application layout in my rails app to give a default header/footer
I have two libraries and a single application assembly project layout and I'm wondering
I have some text views in an linear layout in my android application. Next
I have created the following database layout, and started coding the application. The more
I have very strange issues in my application. I added a layout file with
I'm currently working out the layout of a WPF Application and seem to have
i am creating a new android application.i am using the table layout. I have
I have a crash (Application Stopped Unexpectedly) problem with this main.xml is a HelloWorld

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.