LinearLayout isn't stretching. Filename collision?

Would you mind pointing out the reason why LinearLayout element isn't stretching to match parent element. Is this related to project configuration or class names I use ? I've noticed that name of the xmlfile might be somehow related to this issue. I'm not joking - a couple of days ago I was testing the same code on different xml file names and it worked differently in terms of LinearLayout stretching. This one is named "clip.xml"

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

    <VideoView
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">

    </LinearLayout>

 </FrameLayout>

Thanks

Answers


i see nothing wrong with what you did , but you won't notice a thing in the linearLayout since it doesn't contain anything .

in order to demonstrate it , try setting a background for the linearLayout , for example :

android:background="#88ff000000"

Need Your Help

What causes error 4063 - Database ...databasename... has not been opened yet

lotus-notes

I have an scheduled agent that is trying to access a database on another server. When it runs I get an error 4063 - Database ...databasename... has not been opened yet.

How to get parent node of element using tinyxml

c++ parsing parent-child tinyxml

Is there a way to get a parent node from a TiXmlElement? For example...