Note that there are some explanatory texts on larger screens.

plurals
  1. POHelp with Android XML layout
    primarykey
    data
    text
    <p>I am trying to get my xml to lay this out properly. How it is now, the video is mooshed. If I take away the </p> <pre><code>android:layout_below="@id/day_scroller" </code></pre> <p>in the VideoView tag and add</p> <pre><code>android:layout_centerHorizontal="true" </code></pre> <p>the video size is now proportioned, but I lose my content that is display in my </p> <pre><code>android:id="@+id/day_container" </code></pre> <p>I did not create this layout, but am trying to understand how layouts work and to get this one to work properly. Any help or leads to where I can gain a better understanding is greatly appreciated!</p> <p>Here is what I want: <img src="https://i.stack.imgur.com/34LEB.jpg" alt="alt text"></p> <p>And here is the XML:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; </code></pre> <p> <pre><code>&gt; &lt;com.accuweather.wordweather.SnapHorizontalScrollView android:id="@+id/day_scroller" android:layout_width="fill_parent" android:layout_height="200dip" android:scrollbars="none" android:fadingEdge="none" &gt; &lt;LinearLayout android:id="@+id/day_container" android:orientation="horizontal" android:layout_height="fill_parent" android:layout_width="wrap_content" android:paddingTop="45dip" /&gt; &lt;/com.accuweather.wordweather.SnapHorizontalScrollView&gt; &lt;TextView android:id="@+id/location" android:layout_width="fill_parent" android:gravity="center" android:layout_height="wrap_content" android:background="@drawable/background" android:textSize="20dip" /&gt; &lt;ImageView android:id="@+id/current_alert_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/alert_icon" android:visibility="gone" /&gt; &lt;VideoView android:id="@+id/videoview" android:layout_height="wrap_content" android:layout_width="fill_parent" android:layout_centerHorizontal="true" /&gt; &lt;ProgressBar android:id="@+android:id/progress_large" style="?android:attr/progressBarStyleLarge" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" /&gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:layout_alignParentBottom="true" android:layout_marginBottom="4dip" &gt; &lt;ImageView android:id="@+id/scroll_page_1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/scrollview_page_on" /&gt; &lt;ImageView android:id="@+id/scroll_page_2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/scrollview_page_off" /&gt; &lt;ImageView android:id="@+id/scroll_page_3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/scrollview_page_off" /&gt; &lt;/LinearLayout&gt; &lt;ImageView android:id="@+id/logo" android:scaleType="fitXY" android:layout_alignParentBottom="true" android:layout_alignParentRight="true" android:layout_marginRight="10dip" android:src="@drawable/logo" android:layout_marginBottom="10dip" android:layout_width="150dip" android:layout_height="13dip" /&gt; &lt;Button android:id="@+id/logo_mask" android:layout_alignParentBottom="true" android:layout_alignParentRight="true" android:layout_marginRight="5dip" android:layout_marginBottom="5dip" android:layout_width="180dip" android:layout_height="50dip" android:background="@drawable/trans" /&gt; </code></pre> <p></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload