Note that there are some explanatory texts on larger screens.

plurals
  1. POandroid custom scroll view with ad at bottom
    primarykey
    data
    text
    <p>I have an internal custom view set up and that part seems to be working perfectly - what i'm wondering is ... is it possible to limit the height of the custom view similar to something along the lines of in Swing where you have a Scroll Pane in the Center of a Border Layout and another Panel in the South of the Border Layout.</p> <p>I have 4 text views in the north, then my custom scroll view in the center, and i'd like to have the app remain static at the bottom</p> <p>I tried doing the following 3 in the xml: (pseudo xml - most deleted for readability)</p> <p>1.</p> <pre><code>&lt;LinearLayout ...&gt; // vertical &lt;TextView ...&gt;&lt;/TextView&gt; &lt;LinearLayout ...&gt; // horizontal &lt;TextView ...&gt;&lt;/TextView&gt; &lt;TextView ...&gt;&lt;/TextView&gt; &lt;TextView ...&gt;&lt;/TextView&gt; &lt;TextView ...&gt;&lt;/TextView&gt; &lt;/LinearLayout&gt; &lt;ScrollView...&gt; &lt;LinearLayout ...&gt; &lt;view class="blah.blah.blah.CustomView" ...&gt; &lt;/view&gt; &lt;/LinearLayout&gt; &lt;/ScrollView&gt; &lt;RelativeLayout ...&gt; &lt;com.google.ads.AdView ... /&gt; &lt;/RelativeLayout&gt; &lt;/LinearLayout&gt; </code></pre> <p>2.</p> <pre><code>&lt;LinearLayout ...&gt; // vertical &lt;TextView ...&gt;&lt;/TextView&gt; &lt;LinearLayout ...&gt; // horizontal &lt;TextView ...&gt;&lt;/TextView&gt; &lt;TextView ...&gt;&lt;/TextView&gt; &lt;TextView ...&gt;&lt;/TextView&gt; &lt;TextView ...&gt;&lt;/TextView&gt; &lt;/LinearLayout&gt; &lt;ScrollView...&gt; &lt;LinearLayout ...&gt; &lt;view class="blah.blah.blah.CustomView" ...&gt; &lt;/view&gt; &lt;RelativeLayout ...&gt; &lt;com.google.ads.AdView ... /&gt; &lt;/RelativeLayout&gt; &lt;/LinearLayout&gt; &lt;/ScrollView&gt; &lt;/LinearLayout&gt; </code></pre> <p>3.</p> <pre><code>&lt;LinearLayout ...&gt; // vertical &lt;TextView ...&gt;&lt;/TextView&gt; &lt;LinearLayout ...&gt; // horizontal &lt;TextView ...&gt;&lt;/TextView&gt; &lt;TextView ...&gt;&lt;/TextView&gt; &lt;TextView ...&gt;&lt;/TextView&gt; &lt;TextView ...&gt;&lt;/TextView&gt; &lt;/LinearLayout&gt; &lt;ScrollView...&gt; &lt;LinearLayout ...&gt; &lt;view class="blah.blah.blah.CustomView" ...&gt; &lt;/view&gt; &lt;/LinearLayout&gt; &lt;/ScrollView&gt; &lt;/LinearLayout&gt; &lt;LinearLayout ...&gt; &lt;com.google.ads.AdView .../&gt; &lt;/LinearLayout&gt; </code></pre> <p>any help as to what i can do to make this work would be greatly appreciated</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.
    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